<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Cloud Foundry Application Crashes in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-application-crashes/qaa-p/12810271#M4810539</link>
    <description>&lt;P&gt;It appears you are running the react development server in cloud foundry. Wouldn't you rather build and publish the built results to cloud foundry?  If the application requires hosting/serving, i.e. application doesn't have own web server, you can use SAP's approuter or nginx/staticfile buildpack.&lt;/P&gt;&lt;P&gt;As far as the error you see is concerned, it appears to be a known issue with webpack. The &lt;A href="https://github.com/webpack/webpack/issues/14532"&gt;suggestion&lt;/A&gt; appears to be to set environment variable 'NODE_OPTIONS=--openssl-legacy-provider' or update your react-scripts. &lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 15:08:51 GMT</pubDate>
    <dc:creator>Dinu</dc:creator>
    <dc:date>2023-07-26T15:08:51Z</dc:date>
    <item>
      <title>Cloud Foundry Application Crashes</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-application-crashes/qaq-p/12810270</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
  &lt;P&gt;I have created a react application in BAS. It works fine in developer environment. But when I push the application to Cloud Foundry, the application crashes when the instance starts. &lt;/P&gt;
  &lt;P&gt;Things I have tried to resolve the issue:&lt;/P&gt;
  &lt;P&gt;1. Deleted the application from Cloud Foundary and reinstalled it.&lt;/P&gt;
  &lt;P&gt;2. Removed the node modules in the source file and reinstalled it.&lt;/P&gt;
  &lt;P&gt;3. Downgraded the Node version to previous version.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Does anyone know what kind of error this is and how to resolve it? I am assuming that there might be a dependency that is depricated from npm which is causing the error. I have been facing deprication error a lot with React applications. Is there any way to overcome this issue while coding with React?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 10:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-foundry-application-crashes/qaq-p/12810270</guid>
      <dc:creator>lokesh_kanna</dc:creator>
      <dc:date>2023-07-26T10:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Foundry Application Crashes</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-application-crashes/qaa-p/12810271#M4810539</link>
      <description>&lt;P&gt;It appears you are running the react development server in cloud foundry. Wouldn't you rather build and publish the built results to cloud foundry?  If the application requires hosting/serving, i.e. application doesn't have own web server, you can use SAP's approuter or nginx/staticfile buildpack.&lt;/P&gt;&lt;P&gt;As far as the error you see is concerned, it appears to be a known issue with webpack. The &lt;A href="https://github.com/webpack/webpack/issues/14532"&gt;suggestion&lt;/A&gt; appears to be to set environment variable 'NODE_OPTIONS=--openssl-legacy-provider' or update your react-scripts. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 15:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-foundry-application-crashes/qaa-p/12810271#M4810539</guid>
      <dc:creator>Dinu</dc:creator>
      <dc:date>2023-07-26T15:08:51Z</dc:date>
    </item>
  </channel>
</rss>

