Skip to content

Codecept : Cannot find module '@babel/runtime/helpers/interopRequireDefault' #1983

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

Closed
soufianetomase opened this issue Oct 21, 2019 · 7 comments

Comments

@soufianetomase
Copy link

Hello,

I try to simply run the tutorial "https://codecept.io/quickstart"

$ npx codeceptjs init
npx: 1 installé(s) en 3.08s
Path must be a string. Received undefined
.....\node_modules\codeceptjs\bin\codecept.js
Cannot find module '@babel/runtime/helpers/interopRequireDefault'

i think one or more dependencies have been updated without ensuring compatibility.

Even if I use an old version of codecept I have the same error.

when i add the dependency ''@babel/runtime' i have a new error :

$ npx codeceptjs init
npx: 1 installé(s) en 3.03s
Path must be a string. Received undefined
.....\node_modules\codeceptjs\bin\codecept.js
Cannot find module './utils'
@dustinlessard-wf
Copy link

We're hitting the same issues.

@zarashima
Copy link

For that error, I solve it using the suggested solution here: #1976
npm install [email protected]

@dustinlessard-wf
Copy link

@zarashima , that did not solve our issue. We continue to hit '@babel/runtime/helpers/interopRequireDefault'

@soufianetomase
Copy link
Author

For that error, I solve it using the suggested solution here: #1976
npm install [email protected]

Effectively the problem is solved by installing [email protected]
Thanks

@dustinlessard-wf
Copy link

We ended up needing to blow away our node_modules directory, then got it work!

@pablopaul
Copy link
Collaborator

This is fixed with the 2.3.5 release, can you confirm and close the issue?

@soufianetomase
Copy link
Author

done !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants