on 2022 Mar 04 9:44 AM
Hi guys,
i have a question regardings this tutorial: https://developers.sap.com/tutorials/hana-cloud-cap-create-project.html
When creating a new CAP Project with the wizard, the mta.yaml file should be populated with the necessary dependencies. But when i create new project some errors occur and the mta.yaml is missing some data.
This is how it should look like (Screenshot from the tutorial)
And this is how it actually looks like:
What is the cause of this and how can i fix it?
Here are the errors i get, after creating a new Project:
{"message":"@sap/cap-project:app generator failed - process.on(uncaughtException) process.on(uncaughtException) env.on(error) [INTERNAL ERROR] this.fsUtil.readYAML is not a function\nPlease report this error.\n","stack":"TypeError: env.on(error) [INTERNAL ERROR] this.fsUtil.readYAML is not a function\nPlease report this error.\n\n at TemplateUtil.mergeYAML (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/util/templateUtil.js:108:69)\n at HanaTemplate.runMTAMerging (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/template/hana/index.js:44:33)\n at async HanaTemplate.run (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/template/hana/index.js:95:9)\n at async Spinner.run (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/util/spinner.js:36:20)\n at async CDSGenerator._process (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/index.js:216:17)\n at async CDSGenerator.stepInit (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/index.js:153:9)\n at async TheiaCdsGenerator.writing (/extbin/npm/globals/lib/node_modules/@sap/generator-cap-project/generators/app/TheiaCdsGenerator.js:113:13)"}
{"message":"@sap/cap-project:app generator failed - process.on(uncaughtException) env.on(error) [INTERNAL ERROR] this.fsUtil.readYAML is not a function\nPlease report this error.\n","stack":"TypeError: env.on(error) [INTERNAL ERROR] this.fsUtil.readYAML is not a function\nPlease report this error.\n\n at TemplateUtil.mergeYAML (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/util/templateUtil.js:108:69)\n at HanaTemplate.runMTAMerging (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/template/hana/index.js:44:33)\n at async HanaTemplate.run (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/template/hana/index.js:95:9)\n at async Spinner.run (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/util/spinner.js:36:20)\n at async CDSGenerator._process (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/index.js:216:17)\n at async CDSGenerator.stepInit (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/index.js:153:9)\n at async TheiaCdsGenerator.writing (/extbin/npm/globals/lib/node_modules/@sap/generator-cap-project/generators/app/TheiaCdsGenerator.js:113:13)"}
{"message":"@sap/cap-project:app generator failed - env.on(error) [INTERNAL ERROR] this.fsUtil.readYAML is not a function\nPlease report this error.\n","stack":"TypeError: env.on(error) [INTERNAL ERROR] this.fsUtil.readYAML is not a function\nPlease report this error.\n\n at TemplateUtil.mergeYAML (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/util/templateUtil.js:108:69)\n at HanaTemplate.runMTAMerging (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/template/hana/index.js:44:33)\n at async HanaTemplate.run (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/template/hana/index.js:95:9)\n at async Spinner.run (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/util/spinner.js:36:20)\n at async CDSGenerator._process (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/index.js:216:17)\n at async CDSGenerator.stepInit (/extbin/npm/globals/lib/node_modules/@sap/cds-dk/lib/init/index.js:153:9)\n at async TheiaCdsGenerator.writing (/extbin/npm/globals/lib/node_modules/@sap/generator-cap-project/generators/app/TheiaCdsGenerator.js:113:13)"}
Thanks and regards,
Cemre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.