Closed signix closed 11 months ago
Looks like lookup
is a promise now, works if you await the return like this within generators index.js
line 640:
let subGenerators = (await env.lookup({ localOnly: true, packagePaths: generatorPath })).filter((sub) => {
Make sense. Do you want to do the fix or should I add a pull request ? How can I test it ? Thank you
you can modify the index.js
in your node_modules folder. that got it working again for me
will be glad to help test too! got the same issue
Make sense. Do you want to do the fix or should I add a pull request ? How can I test it ? Thank you
bring in that PR - I‘ll try adding a unit test for it. Then I‘ll assign to @cpa-gecko and @fleischr for review!
Hello, even with the proposal fix, I still get the error. ✖ An error occured while running easy-ui5:app#prompting Error easy-ui5 project
env.lookup(...).filter is not a function
I got the same problems How can I fix that ? Thanks
Hey, same problem here. Is there a quick solution for this issue? Thanks Edit: changing the index.js fixed it for me.
https://www.npmjs.com/package/generator-easy-ui5
Version 3.7.0 is released and available!
Easy-Ui5 version:
---------´ │ 3.6.3 generator! │ ( _´U
_ ) ╰──────────────────────────╯ /A\ / | ~ | __'._.' ´|° ´ Y
Node.js: v18.18.2 yeoman-environment: 3.19.3 generator-easy-ui5: 3.6.3 home: C:\Users\simon.georges\AppData\Roaming\npm\node_modules\generator-easy-ui5 pluginsHome: C:\Users\simon.georges.npm_generator-easy-ui5\plugin-generators
Available generators: ✖ An error occured while running easy-ui5:app#prompting Error easy-ui5 --plugins
Cannot read properties of null (reading '1')
OS/version:
Windows 11
Browser/version (+device/version):
Steps to reproduce the problem:
What is the expected result?
project generation
What happens instead?
✖ An error occured while running easy-ui5:app#prompting Error easy-ui5 project
env.lookup(...).filter is not a function
Any other information? (attach screenshot if possible)
I was trying to use the ts-app-fcl module but have the error even with only project.