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.

Cannot find module '../build/safe-execute'

See original GitHub issue

Hi, I’m a newbie to preact. I want to debug preact, but when I run npm run test got the following error:

13 02 2017 11:02:38.084:ERROR [plugin]: Error during loading "F:\workspace\preact\node_modules/karma-sauce-launcher" plugin:
  Cannot find module '../build/safe-execute'

START:
13 02 2017 11:02:44.304:INFO [karma]: Karma v1.4.1 server started at http://0.0.0.0:9876/
13 02 2017 11:02:44.305:INFO [launcher]: Launching browser PhantomJS with concurrency 2
13 02 2017 11:02:44.306:ERROR [karma]: Found 1 load error

nodejs: v6.9.5-x64

Can anyone know how to solve this? Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
voltrevocommented, Apr 10, 2017

It looks like this can occur from a corrupted cache of the wd module. It’s supposed to create ../build/safe-execute here: https://github.com/admc/wd/blob/b1463ce/scripts/build-browser-scripts.js

Forcing a clean install of this module should resolve the issue. On travis I was able to resolve it by deleting my caches.

1reaction
developitcommented, Apr 10, 2017

Thanks @voltrevo - that confirms it’s not related to Preact. Good to have your explanation around for those finding this via Google or if we run into the issue on Travis.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Hi, I want to debug preact, but when I run npm run test got the following error: 13 02 2017 11:02:38.084:ERROR [plugin]: Error...
Read more >
How do I resolve "Cannot find module" error using Node.js?
it seems like when i installed it globally the npm/node-modules folder was empty and i was trying to use ng new project-name it...
Read more >
Cacher is the code snippet organizer for pro developers
Fix for Karma Cannot find module '../build/safe-execute' error - @benjamincharity shared this Cacher snippet. Cacher is the code snippet ...
Read more >
karma-runner - Bountysource
Cannot find module '../build/safe-execute'
Read more >
cannot find module 'child_process' or its corresponding type ...
You can do this by running npm install --save-dev @types/node in your project directory. This will install the types for the child_process module,...
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