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
See also yeoman/yo#787: many Yeoman have generally switched from being CJS to ESM. generator-generator is still CJS, so trying to use the latest yeoman-generator or other packages results in the dreaded:
require() of ES Module /Users/josh/repos/generator-generator/node_modules/yeoman-generator/dist/index.js from /Users/josh/repos/generator-generator/app/index.js not supported.
Instead change the require of /Users/josh/repos/generator-generator/node_modules/yeoman-generator/dist/index.js in /Users/josh/repos/generator-generator/app/index.js to a dynamic import() which is available in all CommonJS modules.
This issue tracks updating generator-generator with a "type": "module" package so that it can directly import from ESM dependencies.
The text was updated successfully, but these errors were encountered:
See also yeoman/yo#787: many Yeoman have generally switched from being CJS to ESM.
generator-generator
is still CJS, so trying to use the latestyeoman-generator
or other packages results in the dreaded:This issue tracks updating
generator-generator
with a"type": "module"
package so that it can directlyimport
from ESM dependencies.The text was updated successfully, but these errors were encountered: