cancel
Showing results for 
Search instead for 
Did you mean: 

App Generator not getting luanched

vijay_jala2
Explorer

When trying to open the App Generator, I am getting the following error -

{"message":"@sap/fiori:app generator failed - runGenerator() Cannot read property 'resolved' of undefined","stack":"TypeError: runGenerator() Cannot read property 'resolved' of undefined\n at b.<anonymous> (c:\\Users\\Vjala\\.vscode\\extensions\\sapos.yeoman-ui-1.1.53\\dist\\extension.js:193:113206)\n at Generator.next (<anonymous>)\n at s (c:\\Users\\Vjala\\.vscode\\extensions\\sapos.yeoman-ui-1.1.53\\dist\\extension.js:193:109787)"}

My VS code version is 1.53.0.

Fiori Tools appliction wizard extensions version v1.1.53

Please advise.

Regards

Vijay Jala

sachinvkulkarni
Explorer
0 Kudos

I am facing similar issue. Installed the tool and relevant extensions. Despite installation of latest versions and all pre-requisites available (as per above suggestions), the error still prevails upon attempting: 'Open Application Generator'.

Any details to resolve this is appreciated.

VS Version: 1.55.2

SAP Fiori tools - Extension pack and related extensions : 1.1.9

Application Wizard - 1.2.1

XML Toolkit - 1.1.0

Error:

"{"message":"@sap/fiori:app generator failed - runGenerator() Cannot read property 'resolved' of undefined","stack":"TypeError: runGenerator() Cannot read property 'resolved' of undefined\n\tat b.<anonymous> (c:\\Users\\sachi\\.vscode\\extensions\\sapos.yeoman-ui-1.2.1\\dist\\extension.js:2:2000165)\n\tat Generator.next (<anonymous>)\n\tat s (c:\\Users\\sachi\\.vscode\\extensions\\sapos.yeoman-ui-1.2.1\\dist\\extension.js:2:1995895)"}"

vijay_jala2
Explorer

Hey Sachin,

Please follow below steps as specified by sinead.roche -

  1. Uninstall the existing generator with the command: npm uninstall -g @sap/generator-fiori.
  2. Then try and install the generator again by executing: npm i -g @sap/generator-fiori

Regards

Vijay Jala

vijay_jala2
Explorer

Hey Sachin,

Please follow below steps as specified by sinead.roche -

  1. Uninstall the existing generator with the command: npm uninstall -g @sap/generator-fiori.
  2. Then try and install the generator again by executing: npm i -g @sap/generator-fiori

Regards

Vijay Jala

0 Kudos

Thanks Vijay, i got the same problem and this solution works for me

Regards

mathew

Accepted Solutions (1)

Accepted Solutions (1)

nikos_c
Explorer

Hello, I had the same issue and performed the steps provided in the comment of Vivay:

Please follow below steps as specified by sinead.roche -

  1. Uninstall the existing generator with the command: npm uninstall -g @sap/generator-fiori.
  2. Then try and install the generator again by executing: npm i -g @sap/generator-fiori

I have previously downloaded nodejs in my pc and installed it in order to have npm available.

I hope it helped!

martin_grellmann
Explorer
0 Kudos

Sometimes you have to install in Global NPM with sudo (requires your Passwort), but this hint works.

Answers (5)

Answers (5)

Ludovic
Explorer

Hi Vijay,

Could you explain how you solved this issue. I'm still facing the same.

Thanks a lot

vijay_jala2
Explorer
0 Kudos

Hey Ludovic

Try to update your extensions to the latest version. This should resolve the issue.

Regards

Vijay Jala

0 Kudos

Same problem for me

Visual studio code 1.55.1

Fiori tools v1.1.7

All prerequisites installed

Thanks for your help

Nicola

IvanMiguel
Explorer
0 Kudos

I have the same problem.

0 Kudos

New version 1.1.9 solved the issue

thanks

elena_valkova
Discoverer
0 Kudos

Hello, I still have this problem. I`ve install last version for the Extension, but when I was starting Open Application Generate I`ve got an error.

0 Kudos

Hello elena.valkova ,

could please post the error message that you are getting?

Also please enter this in your terminal and provide the output:

`npm list -g --depth=0 | grep 'generator`

Best Regards,

Zdravko

elena_valkova
Discoverer
0 Kudos

Thank you zdravko.georgiev

Now it is work correctly after restarting several times.

JaimeRodriguez
Participant
0 Kudos

I'm still facing this issue with all extensions updated, current version is 1.1.55

sinead_roche
Employee
Employee
0 Kudos

Please provide details of the error you are getting.

After you updated all extensions, make sure that you reload VS Code.

JaimeRodriguez
Participant
0 Kudos

This is the error message

{"message":"@sap/fiori:app generator failed - runGenerator() Cannot read property 'resolved' of undefined","stack":"TypeError: runGenerator() Cannot read property 'resolved' of undefined\n\tat b.<anonymous> (/home/jrodriguez/.vscode-server/extensions/sapos.yeoman-ui-1.1.55/dist/extension.js:193:113542)\n\tat Generator.next (<anonymous>)\n\tat s (/home/jrodriguez/.vscode-server/extensions/sapos.yeoman-ui-1.1.55/dist/extension.js:193:109787)"}

Happens using Windows and WSL2

I tried after reload and also close & open VSCode

sinead_roche
Employee
Employee
0 Kudos

Hi Jamie,

please enter this in your terminal and provide the output:

`npm list -g --depth=0 | grep 'generator`

Kind regards,

Sinead

JaimeRodriguez
Participant
0 Kudos

Hi Sinead,

This is the output:

➜   npm list -g --depth=0 | grep 'generator'
├── @sap/generator-add-hdb-module@1.0.0
├── @sap/generator-cap-project@1.4.0
├── @sap/generator-fiori-elements@1.0.25
├── @sap/generator-fiori-freestyle@0.9.17
├── @sap/generator-hdb-project@1.0.0

Also, I have the same error in another computer, but only using wsl2 and, in this computer, I'm having this message at start:

When I choose Now:

sinead_roche
Employee
Employee

Hi Jamie,

You are missing the new generator which replaces the deprecated Fiori elements generator.

Please run the following:

npm i -g @sap/generator-fiori

Then you can remove the old deprecated generator by running the following:

npm uninstall -g @sap/generator-fiori-elements

npm uninstall -g @sap/generator-fiori-freestyle

Kind regards,

Sinead

JaimeRodriguez
Participant
0 Kudos

Hi Sinead,

It works now. Thank you!

regina_sheynblat
Explorer
0 Kudos

Vijay,

Can you please make sure that you have all the pre-requisites installed:

https://help.sap.com/viewer/b2088bd8ed3748b78adfe213736640a3/Latest/en-US

Thanks

Regina

vijay_jala2
Explorer
0 Kudos

Thanks Ragina for the response. I have already installed all the pre-requisites. But the problem here was w.r.t latest updates of the extensions that came through last week. Tobias and his team has helped me in this issue.

Regards

Vijay Jala