question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v7.4.0 Error: Cannot find module '../build'

See original GitHub issue

Just tried upgrading from 7.3.1 to 7.4.0 and tests won’t run at all now.

Environment:

Describe the bug

internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module '../build'
Require stack:
- /Users/foo/bar/node_modules/@wdio/cli/bin/wdio.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/foo/bar/node_modules/@wdio/cli/bin/wdio.js:11:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Users/foo/bar/node_modules/@wdio/cli/bin/wdio.js' ]
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
christian-bromanncommented, Apr 13, 2021

v7.4.1 published with build directory. I will close this and create an issue for moving to NPM/Yarn workspaces. Sorry all for the inconvenience. Please let if this error still occurs.

1reaction
christian-bromanncommented, Apr 13, 2021

Yeah, had to rerun with --force-publish

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix : cannot find Module error in while running the npm ...
In my application, npm run build command throws a module not found error as below: npm WARN npm npm does not support Node.js...
Read more >
Error: Cannot find module 'webpack/lib/node ... - GitHub
Expected to build to work as when running with npm run build with node v7.4.0. (Write what you thought would happen.) Actual Behavior....
Read more >
Cannot find module 'node-sass' error | bobbyhadz
To solve the error "Cannot find module 'node-sass'", make sure to install the node-sass package by opening your terminal in your project's root...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
When you get the “cannot find module” error, or “module not found”, it means you've not installed the package you're trying to use....
Read more >
Error: Cannot find module 'fibers' - help - Meteor forums
I am using meteor build --server-only …/build --architecture os.linux.x86_64 command to build on Windows if that matters and then deploying to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found