Comments (7)
This is strange, I uninstalled the global ember-native-class-codemod
and ran with npx
, it worked fine.
from ember-native-class-codemod.
In general, I would not advise running globally. Using npx
will make sure to get you the latest every time...
from ember-native-class-codemod.
I am running the code mod on a smaller subset of files. Since this codemod needs to install chromium
, every npx
execution is taking substantially longer.
Also, I installed the codemod globally just a few minutes prior to the npx
run.
from ember-native-class-codemod.
I'm seeing the same error, running as npx ember-native-class-codemod http://localhost:4200 app/controllers/*.js
from ember-native-class-codemod.
Similarly I installed a fresh node version with nvm (12.18.3) and ran again with npx and it works!
It does seem like clearing the global modules may be the reason it's working for me.
from ember-native-class-codemod.
Is there a reason this won't work when running globally?
from ember-native-class-codemod.
Is there a reason this won't work when running globally?
No, but there are combinations of conflicting versions that folks hit which is not an issue when using npx (vs a permanent global install). I think volta install would also probably work just fine, but haven't tried it.
from ember-native-class-codemod.
Related Issues (20)
- Does not match field "body"
- Error `Error: Evaluation failed: TypeError: Cannot convert undefined or null to object` HOT 1
- TypeError: Cannot read property 'process' of undefined HOT 4
- `queryParams` needs to be an array
- Error when encountering ArrowFunctionExpression in computed setter HOT 2
- Codemod mistakes `computed.equal` for a modifier HOT 2
- Convert classic fields to prototype fields instead of class fields when run against an addon HOT 2
- ReferenceError: regeneratorRuntime is not defined if using babel.config.json
- Puppeteer version is not compatible with M1 Macs HOT 1
- I am getting `Ember is not defined` errors in a lot of the files
- Produces class decorator usage with incorrect syntax HOT 1
- codemod is removing async from methods HOT 1
- Codemod still mis-handling boolean CLI args as strings HOT 1
- Error count doesnโt match log.
- Unmodified when running codemod HOT 4
- Won't transform class with `actions` hash HOT 4
- Codemod is not working HOT 5
- Transformation error (Received an unexpected value [object Object])
- Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration HOT 3
- Error: `define is not defined` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-native-class-codemod.