ember-native-class-codemod icon indicating copy to clipboard operation
ember-native-class-codemod copied to clipboard

TypeError: Cannot read property 'process' of undefined

Open lifeart opened this issue 4 years ago • 4 comments

TypeError: Cannot read property 'process' of undefined at C:\Users\lifeart\AppData\Roaming\npm-cache_npx\173988\node_modules\ember-es6-class-codemod\node_modules\flow-parser/flow_parser.js:281:70 at Object. (C:\Users\lifeart\AppData\Roaming\npm-cache_npx\173988\node_modules\ember-es6-class-codemod\node_modules\flow-parser/flow_parser.js:2:2) at Module._compile (internal/modules/cjs/loader.js:778:30) at Module._compile (C:\Users\lifeart\AppData\Roaming\npm-cache_npx\173988\node_modules\ember-es6-class-codemod\node_modules\pirates\lib\index.js:99:24) at Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Object.newLoader [as .js] (C:\Users\lifeart\AppData\Roaming\npm-cache_npx\173988\node_modules\ember-es6-class-codemod\node_modules\pirates\lib\index.js:104:7) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17)

lifeart avatar Dec 01 '20 19:12 lifeart

looks related: https://github.com/reactjs/react-codemod/issues/219, https://github.com/facebook/jscodeshift/issues/299

lifeart avatar Dec 01 '20 19:12 lifeart

I tried the solutions in the related issues, but i am still getting this error.

I tried different variations of the following command line. npx ember-native-class-codemod http://localhost:4200 --no-babel app/components

Am i missing something or does ember-native-class-codemod not support these flags?

JoepHeijnen avatar Apr 16 '21 14:04 JoepHeijnen

@JoepHeijnen ya, flags not working

lifeart avatar Apr 16 '21 15:04 lifeart

Is there any solution to this one?

terrorbollen avatar Mar 17 '22 10:03 terrorbollen