You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however running the generator shows two problems .
issue 1
(node:47412) UnhandledPromiseRejectionWarning: TypeError: The generator doesn't provides a constructor.
at Environment._findGeneratorClass (/Users/xisizhe/Documents/projects/server/modules/app-generator/server/controllers/node_modules/_yeoman-environment@3.0.1@yeoman-environment/lib/environment.js:641:13)
at Environment.get (/Users/xisizhe/Documents/projects/server/modules/app-generator/server/controllers/node_modules/_yeoman-environment@3.0.1@yeoman-environment/lib/environment.js:598:17)
at Environment.create (/Users/xisizhe/Documents/projects/server/modules/app-generator/server/controllers/node_modules/_yeoman-environment@3.0.1@yeoman-environment/lib/environment.js:678:35)
at instantiateAndRun (/Users/xisizhe/Documents/projects/server/modules/app-generator/server/controllers/node_modules/_yeoman-environment@3.0.1@yeoman-environment/lib/environment.js:851:30)
at Environment.run (/Users/xisizhe/Documents/projects/server/modules/app-generator/server/controllers/node_modules/_yeoman-environment@3.0.1@yeoman-environment/lib/environment.js:873:12)
issue 2
the option value didn't pass from environment to generator.
I am using yeoman to build a simple generator.
my yeoman version is as followed.
the following code will initialise the generator and pass the option value to it.
generator code
however running the generator shows two problems .
the option value didn't pass from environment to generator.
constructor(args, opts) {
super(args, opts);
console.log('constructor ',args, opts);
}
args are []
and opts are
I don't know why, I have the constructor function in the code and this constructor function did execute to print out
The text was updated successfully, but these errors were encountered: