ember-codemods / ember-native-class-codemod

A codemod-cli project for converting Ember objects to es6 native classes
68 stars 38 forks source link

Codemod is not working #539

Closed ganapathyHf closed 7 months ago

ganapathyHf commented 11 months ago

While running npx ember-native-class-codemod http://localhost:4200/ <file path>, I am getting this error

(node:60454) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node:util'
Require stack:
- /Users/ganapathy/.npm/_npx/60454/lib/node_modules/ember-native-class-codemod/transforms/ember-object/index.js
- /Users/ganapathy/.npm/_npx/60454/lib/node_modules/ember-native-class-codemod/node_modules/codemod-cli/src/transform-support.js
- /Users/ganapathy/.npm/_npx/60454/lib/node_modules/ember-native-class-codemod/node_modules/codemod-cli/src/index.js
- /Users/ganapathy/.npm/_npx/60454/lib/node_modules/ember-native-class-codemod/bin/cli.js

Ember version: 3.16.2

viganella commented 10 months ago

Any updates on this one, im getting similar issue ?

gitKrystan commented 9 months ago

What version of node are you running?

viganella commented 9 months ago

v14.16.1

gitKrystan commented 9 months ago

Can you try with Node 16+? If that works, I'll update the engines entry in the package.json here.

mansona commented 7 months ago

https://github.com/ember-codemods/ember-native-class-codemod/pull/544 dropped support for node 14 and really we should not support Node 16 because that's EOL too 🙈 but updating should fix this 👍