Skip to content

install codeceptjs versi 2.3.3 get respond error "cannot find module './utils" #1976

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
Kurniawan22 opened this issue Oct 21, 2019 · 6 comments · Fixed by #1977
Closed

install codeceptjs versi 2.3.3 get respond error "cannot find module './utils" #1976

Kurniawan22 opened this issue Oct 21, 2019 · 6 comments · Fixed by #1977

Comments

@Kurniawan22
Copy link

Kurniawan22 commented Oct 21, 2019

I am install codeceptjs new version and follow step by step install "https://codecept.io/quickstart"
but get respond error " cannot find module './utils'".

step by step :

  • npm init -y
  • yarn add codeceptjs puppeteer --save-dev
  • npx npx codeceptjs init
    geeting respond = cannot find module './utils'

maybe codeceptjs versi 2,3,3 is corrupt?

@sky172839465
Copy link
Contributor

sky172839465 commented Oct 21, 2019

I have the same problem, you can install [email protected] to avoid the issue.

@hfrijlink
Copy link

hfrijlink commented Oct 21, 2019

Thanks @sky172839465 , that worked for me!

maybe codeceptjs versi 2,3,3 is corrupt?

It might be a codeceptjs dependency that's failing. I went back a minor version to 2.3.1 when the error occurred, and there the same happened this morning

@pablopaul
Copy link
Collaborator

@sky172839465 how did you figured out that this is the dependency which requires the not available module?

@sky172839465
Copy link
Contributor

@pablopaul my functional test's error log told me which line throw error

Error: Cannot find module './utils'
     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
     at Function.Module._load (internal/modules/cjs/loader.js:506:25)
     at Module.require (internal/modules/cjs/loader.js:636:17)
     at require (internal/modules/cjs/helpers.js:20:18)
-    at Object.<anonymous> (/xxx/node_modules/parse-function/dist/cjs/index.js:1:731)
     at Module._compile (internal/modules/cjs/loader.js:688:30)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
     at Module.load (internal/modules/cjs/loader.js:598:32)
     at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
     at Function.Module._load (internal/modules/cjs/loader.js:529:3)

I have been report an issue to parse-function's repo, hope this issue can be fixed ASAP.

@Kurniawan22
Copy link
Author

hi @sky172839465 thanks for you solutions.

@tunnckoCore
Copy link

Install latest parse-function version :)

I'm in times of migration to monorepo for all my stuff and there can be bugs, so frequent updates may be needed for some time. Sorry for the problems :)

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

Successfully merging a pull request may close this issue.

5 participants