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
The "from" argument must be of type string. Received type undefined #1326
Comments
did you try from node_modules in your local directory ? |
any resolution for this issue? I am getting this error with Cucumber 7 |
@stefdelec @VivekLande this is likely related to either
In either case you can end up with two different cucumber-js instances at runtime which can cause this (you could check this by looking in your I'm working on documenting this in #1540 - take a look at the workaround and see if that works for you? |
Thanks @davidjgoss, I am able to resolved the issue with the solution provided by you. |
This workaround isn't working for me. I've definitely not got cucumber installed elsewhere. I've been on this for hours and I'm getting nowhere. This is my package json dependencies:
I've searched my node_modules folder and cucumber isn't in there multiple times. I've no idea where to go next |
@csurfleet can you please create a minimal reproducible example? |
In my case, |
@phatNfqAsia could you please give more info on your issue? |
@aurelien-reeves my repo is kept private so I can not share, sorry :( |
Ok, thanks for the details. When I asked for a repo, that could be a reproduction repo made simple without confidential data. As simple as possible to reproduce the issue |
Wondering why this issue was closed. Still happening |
As requested before, would you have a minimal reproducible example? |
https://github.com/cucumber/cucumber-js/blob/HEAD/docs/transpiling.md Did you try this? For us, the above link was not the solution. We removed the package.json and node modules from the bdd test folder, and imported everything from the ''general'' package.json. Why it now works is still a mystery to me (since other folders in our project have their own package.json without issues) but figured it might help others to mention this here. |
I am trying to use steps I wrote and publish on npm
Here is the error I have:
I have found that this is
this.cwd
which is undefined. What can i do?If I copy paste my steps in the root directory (where the package.json is), I don't have any error. So the problem is: I cannot not --require from node_modules.
The text was updated successfully, but these errors were encountered: