Yeoman throwed error SAP UI5 Application Generator on vscode

290 views Asked by At

I get the error message that creating the Fiori App which source Odata.

{"message":"@sap/fiori:app generator failed - env.on(error) Cannot read properties of undefined (reading 'version')","stack":"TypeError: env.on(error) Cannot read properties of undefined (reading 'version')\n\tat default_1._applyDefaults (/opt/homebrew/lib/node_modules/@sap/generator-fiori/generators/app-gen-shared/app/index.js:1:676600)\n\tat default_1.writing (/opt/homebrew/lib/node_modules/@sap/generator-fiori/generators/app-gen-shared/app/index.js:1:673522)\n\tat Object.<anonymous> (/opt/homebrew/lib/node_modules/@sap/generator-fiori/generators/commonlibs/index.js:2:4454280)\n\tat /opt/homebrew/lib/node_modules/@sap/generator-fiori/generators/commonlibs/index.js:2:3726211\n\tat new Promise (<anonymous>)\n\tat /opt/homebrew/lib/node_modules/@sap/generator-fiori/generators/commonlibs/index.js:2:3725971\n\tat g.add.once (/opt/homebrew/lib/node_modules/@sap/generator-fiori/generators/commonlibs/index.js:2:4454298)\n\tat Immediate.<anonymous> (/Users/mert/.vscode/extensions/sapos.yeoman-ui-1.13.0/dist/extension.js:2:1970918)\n\tat process.processImmediate (node:internal/timers:466:21)"}

1. enter image description here

I found some solution up about this error that relates certification or proxy settings but it didn't work for me.

I'm using MacOS system, If I call OData URL on Firefox It gets the Data XML correctly. At this time, I tried the Safari Browser with same URL then it explode pop-up which is contain about ask opening Outlook I didn't understand about topic.

Is there anyone help?

1

There are 1 answers

1
jesuismert On

I fixed it.


As you can see, I've already connected the SAP System I get data. So, I should have to choose 'Connect to a System' which is Data Source that for reading services automatically.

enter image description here