Closed Marnix-IxD closed 6 years ago
What is the version of Yeoman you are running? (yo version
)
I'm running 1.8.5 and it works:
$ yo --version
1.8.5
Node version is v6.9.1 Yo version is 1.8.5.
You are running this from Webstorm or the command-line? It's weird. I have the same setup (node 6.9.1 and yo 1.8.5) and it works in my console.
I'm running it from the Webstorm start new project > Yeoman > Select the Mendix generator > click next and then it gives that error.
If i use it from the .cmd or terminal inside webstorm (which is .cmd) in an empty folder it works. but I expected it to generate properly as well when directly using it from the yeoman generator selection
Can you please explain in steps how you use the 'yeoman generator selection'? Is this a plugin in WebStorm? If so, that might explain the problem, as in that it cannot answer any questions. Which would be a problem with Webstorm, instead of Yeoman.
Basically you select a project type, and then it allows for using installed generators.
I checked the issue and it seems that this is purely related to Webstorm and the way it interacts with the generator. Right now I can't fixed it, but I am investigating. Other generators also use the prompt and work in Webstorm, so there might be something I am missing right now.
The only thing I can see is that Webstorm doesn't accept adapter.prompt
as a Promise. Other generators favor an callback style (which I don't). I'll see if I can rewrite this, using a callback (previous attempts failed)
This seems to be fixed in newer versions of WebStorm. Closing
I'm using the Webstorm Javascript development environment, with my node / yeoman setup I get the following error when generating the widget, does anyone have an idea how to fix this?