on ‎2023 Apr 04 5:00 PM
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:

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.
There seem to be other questions here about the same error message, but those scenarios are completely different from mine.
Any help would be appreciated.
Thanks in advance.
Request clarification before answering.
if you check your network tab, there is 404 error for that.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
I am way more confused now. Thanks!
Feels like we're being punished for asking a question.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.