-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
env: node\r: No such file or directory #32
Comments
You were missing a parameter, see our npx jscodeshift -t ./node_modules/@wdio/codemod/protractor ./test/steps/baseSteps.js Please let me know if you have further questions. |
Unfortunately, using -t parameter dint help. Its still throws |
For reference, I think this is an upstream issue with |
It would be helpful to update the docs to indicate that the workaround described here facebook/jscodeshift#424 (comment) works. |
@kliph-gladly mind raising a PR? |
I've encountered larger issues with the |
You will only need the codemod package as utility to rewrite your tests. |
Thanks. Yes I'm aware. The larger issue that I mentioned is that the utility produces code with syntax errors. |
Can you provide a code example that causes a syntax error when rewriting the code with this codemod? |
Sure:
produces
This is syntactically incorrect for two reasons. The outer function context is not |
Yep, this is a bug, mind raising a new issue for it? |
Will do. Thank you. |
Hi everyone, I am trying to transform a file called baseSteps.js to webdriverIO file using command
npx jscodeshift ../node_modules/@wdio/codemod/protractor/ test/steps/baseSteps.js
Before this i have installed :
npm install --save-dev @wdio/cli
npx wdio config (ran the configuration wizard) I have configured cucumber framework.
After which I ran
npx jscodeshift ../node_modules/@wdio/codemod/protractor/ test/steps/baseSteps.js
In package.json I have all the dependencies
So when I run npx jscodeshift ../node_modules/@wdio/codemod/protractor/ test/steps/baseSteps.js
it throws :
env: node\r: No such file or directory
Not sure what I am missing. though baseSteps.js file exists in test/steps folder. Can someone suggest?
Note: I am using mac OS. I was going through help in some other articles and I think this issue is caused by line endings with CRLF, where as its must be LF. For ex: mrmlnc/svg2sprite-cli#4
and many more when we search for
env: node\r: No such file or directory
hopefully this will give an ideaThe text was updated successfully, but these errors were encountered: