Comments (4)
Does it work with node 16?
from types-react-codemod.
I want to investigate this though. Tests are currently running on 14.x, 16.x, 17.x and 18.x so I'm missing something in the testing setup
from types-react-codemod.
Ah Thank you, it works on node 16
node 14 : KO
node 16 : OK
node 18 : KO
from types-react-codemod.
What's odd to me is why it would require C:\Users\dorki\WebstormProjects\reversio-front\node_modules\babel-preset-react-app\node_modules@babel\runtime\helpers\esm\toConsumableArray.js
from C:\Users\dorki\AppData\Local\npm-cache_npx\07333c78fb78394f\node_modules\types-react-codemod\transforms\implicit-children.js
It reaches into your local node_modules from the global node_modules. That shouldn't be happening. So I'm probably not declaring some dependency correctly.
Edit: But then why is it importing some babel-runtime function from my transforms? Is codeshift transpiling the transforms? The published file does not contain any reference to toConsumeableArray
: https://unpkg.com/browse/[email protected]/transforms/implicit-children.js
Edit2: I think I need to tell jscodeshift to not transform the transforms: facebook/jscodeshift#395 (comment). So the bug report actually revealed a potential optimization 🎉
from types-react-codemod.
Related Issues (20)
- Import error HOT 1
- Transformation error: crashes on TSInstantiationExpression HOT 2
- Issue with types on React.Children.map() HOT 1
- Back to React.FunctionalComponent? HOT 1
- useCallback: transform incorrect when using arrow function with single params HOT 1
- Defective implicit children codemod HOT 1
- window.d.ts Transformation error ('export declare' must be followed by an ambient declaration. HOT 3
- React 19 types codemods HOT 1
- Remove deprecated `ReactChildren`
- Remove deprecated types related to mixins
- Remove deprecated `ReactHTML` and `ReactSVG` HOT 2
- Codemod for `ReactElement` -> `ReactElement<any>`
- Codemod for implict return in `ref`
- Imports and `declare module`
- replace type codemods do not codemod return types HOT 1
- New `useReducer` typings
- If the original type is React.PropsWithChildren, using codemod will still add an extra PropsWithChildren HOT 2
- Error running tool in Windows HOT 1
- [Bug] Replaces Own `Validator` type with `PropTypes.Validator` HOT 1
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 types-react-codemod.