<?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: Component-preload.js is not executable (Mime type) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654880#M4747605</link>
    <description>&lt;P&gt;I did a build ($npm  run build). The Component_preload.js is created in the dist folder. But I still get the error.&lt;/P&gt;&lt;P&gt;Are we supposed to continue getting the error until it's deployed?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 11:55:11 GMT</pubDate>
    <dc:creator>RaminS</dc:creator>
    <dc:date>2023-04-05T11:55:11Z</dc:date>
    <item>
      <title>Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaq-p/12654878</link>
      <description>&lt;P&gt;I am trying to run my newly created Fiori app in BAS connecting to our on-premise gateway. When I do a preview in BAS (or do $npm run start) I'm getting this error in the console:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2161736-component-cannot-execute.png" /&gt;&lt;/P&gt;
  &lt;P&gt;The application seems to run fine, but I still get that error. Everything in the app is pretty much as created by the template wizard, I didn't change anything in the manifest or component.js.&lt;/P&gt;
  &lt;P&gt;There seem to be other questions here about the same error message, but those scenarios are completely different from mine.&lt;/P&gt;
  &lt;P&gt;Any help would be appreciated.&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 16:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaq-p/12654878</guid>
      <dc:creator>RaminS</dc:creator>
      <dc:date>2023-04-04T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654879#M4747604</link>
      <description>&lt;P&gt;if you check your network tab, there is 404 error for that.&lt;/P&gt;&lt;P&gt;you can ignore that, if you build and deploy your project(to server), the preload file will be generated, you will see that error goes away when you run with real server&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 19:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654879#M4747604</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2023-04-04T19:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654880#M4747605</link>
      <description>&lt;P&gt;I did a build ($npm  run build). The Component_preload.js is created in the dist folder. But I still get the error.&lt;/P&gt;&lt;P&gt;Are we supposed to continue getting the error until it's deployed?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 11:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654880#M4747605</guid>
      <dc:creator>RaminS</dc:creator>
      <dc:date>2023-04-05T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654881#M4747606</link>
      <description>&lt;P&gt;Yes, I already said it in my first reply&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 21:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654881#M4747606</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2023-04-05T21:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654882#M4747607</link>
      <description>&lt;P&gt;Yes, but you don't explain why.&lt;/P&gt;&lt;P&gt;When I do a build, the component_preload.js is created (it was not initially). Why would it need to be deployed? What happens when it's deployed that causes the error to go away. &lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 18:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654882#M4747607</guid>
      <dc:creator>RaminS</dc:creator>
      <dc:date>2023-04-08T18:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654883#M4747608</link>
      <description>&lt;P&gt;that file is generated in dist folder, which is finally deployed to app server. when you run against the real server and the browser requests that file, your real server will easily find the file and serve you.&lt;/P&gt;&lt;P&gt;when you run locally, your local server is trying to look up the file under webapp folder, which doesn't have that file. that's why you get error. for your local run, you can copy that file to your webapp folder, the error will also be gone.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 18:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654883#M4747608</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2023-04-08T18:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654884#M4747609</link>
      <description>&lt;P&gt;Thanks for the explanation.&lt;/P&gt;&lt;P&gt;But when I look at the same application built in WebIDE, the component_preload.js is also in the dist folder, not webapp. And yet when I run it locally (sapflpsandbox)I don't get that error in WebIDE.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 12:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654884#M4747609</guid>
      <dc:creator>RaminS</dc:creator>
      <dc:date>2023-04-10T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654885#M4747610</link>
      <description>&lt;P&gt;did you see the same file is requested when you run with webide????&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 16:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654885#M4747610</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2023-04-10T16:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654886#M4747611</link>
      <description>&lt;P&gt;No. Why?.... &lt;/P&gt;&lt;P&gt;why should they be different?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 18:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654886#M4747611</guid>
      <dc:creator>RaminS</dc:creator>
      <dc:date>2023-04-10T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654887#M4747612</link>
      <description>&lt;P&gt;why they should be same?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 18:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654887#M4747612</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2023-04-10T18:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654888#M4747613</link>
      <description>&lt;P&gt;I am way more confused now. Thanks!&lt;/P&gt;&lt;P&gt;Feels like we're being punished for asking a question.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 00:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654888#M4747613</guid>
      <dc:creator>RaminS</dc:creator>
      <dc:date>2023-04-11T00:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654889#M4747614</link>
      <description>&lt;P&gt;Hi Ramin,&lt;/P&gt;&lt;P&gt;I can't give you an answer on why the template created in BAS tries to call the component-preload.js. I retested it with an freestyle template and it didn't get this error. Guess there would be more info needed on your specific scenario, which template, migration from webide/neo(?) etc.&lt;/P&gt;&lt;P&gt;Usually this component-preload.js file is generated on building the app to improve performance of deployed apps. If your app is deployed and you don't get an error, this means your component-preload.js file gets consumed as it should be, so everything is fine.&lt;/P&gt;&lt;P&gt;When running locally or in debug, the component.js file will be retrieved in most cases and not the component-preload.js. As i said, why your application tries to request that preload file in local/debug mode, I can't answer because I don't have access to all the info. But if you say that the application still runs fine in preview, even with the error, I wouldn't personally mind too much. It seems that in this case it tries to load the preload file, fails, but then still gets the component.js file to make the app work. Otherwise your app wouldn't run.&lt;/P&gt;&lt;P&gt;In preview you could try amending sap-ui-xx-componentPreload=off to the URL to deactivate loading component-preload.js. Then you could see if you still get that error.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 10:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654889#M4747614</guid>
      <dc:creator>david_bizer</dc:creator>
      <dc:date>2023-04-11T10:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Component-preload.js is not executable (Mime type)</title>
      <link>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654890#M4747615</link>
      <description>&lt;P&gt;Thanks for the explanation David.&lt;/P&gt;&lt;P&gt;My template was just the Fiori, Basic freestyle template.&lt;/P&gt;&lt;P&gt;Regardless, I will keep an eye on it and see we get the same error in future apps created in BAS.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 19:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/component-preload-js-is-not-executable-mime-type/qaa-p/12654890#M4747615</guid>
      <dc:creator>RaminS</dc:creator>
      <dc:date>2023-04-11T19:53:38Z</dc:date>
    </item>
  </channel>
</rss>

