Skip to content
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

inaccurate relative path in packages/react-scripts/lib/createJestConfig.js #2

Open
snyderpa opened this issue Apr 9, 2018 · 0 comments

Comments

@snyderpa
Copy link
Contributor

snyderpa commented Apr 9, 2018

See line 14 of https://github.com/constfun/create-react-WebExtension/blob/master/packages/react-scripts/lib/createJestConfig.js

When running npm test the following output is generated:


> extension@0.1.0 test /Users/psnyder/georgesagent/bitbucket/georgesagent/src/extension
> react-scripts-web-ext test --env=jsdom

module.js:538
    throw err;
    ^

Error: Cannot find module '../../config/paths'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/psnyder/georgesagent/bitbucket/blah/src/extension/node_modules/react-scripts-webextension/lib/createJestConfig.js:14:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
npm ERR! Test failed.  See above for more details.

It looks like the target is in a sibling folder at ../config/paths

This was referenced May 6, 2018
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

1 participant