v7.4.0 Error: Cannot find module '../build'
See original GitHub issueJust tried upgrading from 7.3.1 to 7.4.0 and tests won’t run at all now.
Environment:
- WebdriverIO version: 7.4.0
- Mode: WDIO Testrunner / local
- If WDIO Testrunner, running sync/async: sync
- Node.js version: 12.22.1
- NPM version: 6.14.12
- Browser name and version: Chrome 89 / stable
- Platform name and version: MacOS Big Sur
- Additional wdio packages used (if applicable): @wdio/cli @wdio/jasmine-framework @wdio/local-runner @wdio/spec-reporter @wdio/sync
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:
- Created 2 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Yeah, had to rerun with
--force-publish