cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while executing npm start run in VS Code using Fiori Application Generator

stan786
Explorer
0 Kudos

Hello SAP Experts,

I created a empty SAPUI5 application using the template in the Fiori application Generator v1.7.5 in VS Code. I did not add any other code and just tried to execute the app using command npm run start and gave an error which is attached below.

I have tried with and without proxy, both didn't work. The SAPUi5 version is defined in manifest.json as 1.71.2.

Appreciate your help in advance.

Regards,

-Stanley

0 Kudos

Hi stan786,

thank you for reporting this issue. I have tried to reproduce it, but on my side it works. Are you behind a corporate proxy by any chance?

Thanks and Best Regards,

Zdravko

junwu
Active Contributor
0 Kudos

I am behind corporate proxy, but it was working before, once updated, it stopped working, I have to use that workaround

0 Kudos

Hi jun.wu5,

what is the response if you execute the following in the terminal?

curl -v "https://ui5.sap.com/1.71.2/resources/sap-ui-core.js"

Best regards,

Zdravko

junwu
Active Contributor
0 Kudos

Hi Zdravko,

Thanks for looking into it.

seems to be working now with latest(1.7.5)

curl command has no problem to load the lib. don't know what changed.

Best regards,

Jun

Accepted Solutions (1)

Accepted Solutions (1)

Hello jun.wu5,

I am happy to announce that version 1.8.1 of "@sap/ux-ui5-tooling" is now released. This version contains the fix for this issue. You can get the fix by updating the "@sap/ux-ui5-tooling" version in your application.

Best regards,

Zdravko

The Fiori tools team

tashley
Product and Topic Expert
Product and Topic Expert
0 Kudos

We helped you to accept the answer, since there were no updates after 7 days. You can unaccept it anytime if the answer provided was not helpful enough and you have further question

Answers (3)

Answers (3)

zayidu
Participant
0 Kudos

Hello Experts,


I created a new List App using Fiori Generator via VS Code Extension.

Everything was a success and then I tried running npm i, unfortuantely the app doesn't run.
Below are the errors I get in the terminal and in the web console.
Thanks for helping me.

stan786
Explorer
0 Kudos

Hi Jun,

Thank you for your help.

If we change directly in the npm module js file, wouldn't it get overwritten the next time I am re-installing the node modules in another system? I found that this issue exists with only the latest version of npm module @sap/ux-ui5-tooling which is 1.7.5. This issue doesn't exist in version 1.7.0.

So I removed the npm module using the following command.

npm uninstall @sap/ux-ui5-tooling@1.7.5

And I installed an older version using the following command and now it is working.

npm install @sap/ux-ui5-tooling@1.7.0
junwu
Active Contributor
0 Kudos

yes, mine is just workaround.

junwu
Active Contributor
0 Kudos

open fiori-tools-proxy.js(file location is in your error msg) file and change line 113921, just return false.

I had same issue a few days back, this trick helped.