Closed andriyor closed 1 year ago
Do you have a file called transform.js
? It looks like you're trying to use a file called transform.js
.
Just updated description Also, I have no such error inside of the empty project
I hit a similar error. On windows, I had to run path.resolve(transformPath)
to get the tool working:
- const transformPath = 'transform.js';
+ const transformPath = path.resolve('transform.js');
Same problem here, @robert-w-gries solution fixed it. I would suggest you edit the README, following these instructions that are the first piece of code listed in docs does not work.
Steps to reproduce
npx create-react-app my-app --template redux-typescript
npm i jscodeshift
run.js
transform.js
node run.js