SAP / generator-easy-ui5

Meta-generator various project types within the UI5 Universe
https://blogs.sap.com/2021/04/09/easy-ui5-3.0-from-community-contributions-to-community-plugins/
Apache License 2.0
230 stars 72 forks source link

Error in add-extension #139

Closed felixSap closed 6 months ago

felixSap commented 7 months ago

Easy-Ui5 version:

Run yo easy-ui5 --plugins to print all relevant version strings

OS/version:

wsl Ubuntu 22.04.2 LTS

Steps to reproduce the problem:

  1. yo easy-ui5 add-extension

Screenshot 2023-12-07 101816 Screenshot 2023-12-07 1019582

What happens instead?

Error: Current environment doesn't provides some necessary feature this generator needs. at new Generator (/home/felix/.npm/_generator-easy-ui5/plugin-generators/generator-ui5-add-extension/node_modules/yeoman-generator/lib/index.js:259:13) at new App (/home/felix/.npm/_generator-easy-ui5/plugin-generators/generator-ui5-add-extension/generators/App.js:42:9) at FullEnvironment.instantiate (file:///home/felix/.nvm/versions/node/v18.18.2/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-base.js:252:27) at FullEnvironment.create (file:///home/felix/.nvm/versions/node/v18.18.2/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-base.js:246:21) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async FullEnvironment.run (file:///home/felix/.nvm/versions/node/v18.18.2/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-full.js:307:27)

petermuessig commented 6 months ago

The subgenerator requires to use a proper version of yeoman-environment. I fixed this with the commit: https://github.com/ui5-community/generator-ui5-add-extension/commit/5b89d0170323bd8144ad0b5f516b9bdf3953f666