Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot generate the skeleton of NodeJS UI5 app

EmilDinchev
Advisor
Advisor
0 Kudos

Tutorials: https://developers.sap.com/tutorials/sapui5-fiori-cf-display-data.html
--------------------------

Hi colleagues,

On step 1 of the tutorial I got the following error:

$ yo easy-ui5 project newview
_-----_
| | ╭──────────────────────────╮
|--(o)--| │ Welcome to the easy-ui5 │
`---------´ │ generator! │
( _´U`_ ) ╰──────────────────────────╯
/___A___\ /
| ~ |
__'.___.'__
´ ` |° ´ Y `
? What is the name of the new view? Products
? Would you like to create a corresponding controller as well? Yes
? Do you want to add an OPA5 page object? No
? Seems like this project has not been generated with Easy-UI5. Please enter the name your project. myUI5App
? Please enter the namespace you use currently com.sap
? Which view type do you use? JSON
? Would you like to create a route in the manifest? Yes
Error during the manipulation of the //webapp/manifest.json file: TypeError: Cannot read properties of undefined (reading 'sap.ui5')
TypeError: Cannot read properties of undefined (reading 'sap.ui5')
at /workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/generators/newview/index.js:181:39
at module.exports.exports.manipulateJSON (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/helpers/fileaccess.js:61:19)
at module.exports.writing (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/generators/newview/index.js:180:45)
at Object.<anonymous> (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/yeoman-generator/lib/index.js:991:25)
at /workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/run-async/index.js:49:25
at new Promise (<anonymous>)
at /workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/run-async/index.js:26:19
at runLoop.add.once.once (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/yeoman-generator/lib/index.js:992:11)
at Immediate.<anonymous> (/workspaces/NodeJS/node_modules/grouped-queue/lib/subqueue.js:48:34)
at processImmediate (node:internal/timers:464:21)
TypeError: Cannot read properties of undefined (reading 'sap.ui5')
at /workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/generators/newview/index.js:181:39
at module.exports.exports.manipulateJSON (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/helpers/fileaccess.js:61:19)
at module.exports.writing (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/generators/newview/index.js:180:45)
at Object.<anonymous> (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/yeoman-generator/lib/index.js:991:25)
at /workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/run-async/index.js:49:25
at new Promise (<anonymous>)
at /workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/run-async/index.js:26:19
at runLoop.add.once.once (/workspaces/NodeJS/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/yeoman-generator/lib/index.js:992:11)
at Immediate.<anonymous> (/workspaces/NodeJS/node_modules/grouped-queue/lib/subqueue.js:48:34)
at processImmediate (node:internal/timers:464:21)
node ➜ /workspaces/NodeJS $
  • SAP Managed Tags:
1 ACCEPTED SOLUTION

nicoschoenteich
Developer Advocate
Developer Advocate

In a seperate conversation we found out that there was no ui5 based project previously initialized before running the "yo easy-ui5 project newview" command. Following this tutorial before running the command fixed the problem: https://developers.sap.com/tutorials/sapui5-fiori-cf-create-project.html

  • SAP Managed Tags:
3 REPLIES 3

EmilDinchev
Advisor
Advisor
0 Kudos

Is there some docker image where all tools are already installed, configured and tested? It is a nightmare to install all needed tools.

  • SAP Managed Tags:

nicoschoenteich
Developer Advocate
Developer Advocate

Did you follow the previous tutorial in the mission? https://developers.sap.com/tutorials/sapui5-fiori-cf-create-project.html

I am asking because of this part in the log "Seems like this project has not been generated with Easy-UI5". I guess this is throwing things off.

Also, are you using the Business Application Studio for this?

  • SAP Managed Tags:

nicoschoenteich
Developer Advocate
Developer Advocate

In a seperate conversation we found out that there was no ui5 based project previously initialized before running the "yo easy-ui5 project newview" command. Following this tutorial before running the command fixed the problem: https://developers.sap.com/tutorials/sapui5-fiori-cf-create-project.html

  • SAP Managed Tags: