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

Unable to run scripts/test #79

Closed
ohmyjersh opened this issue Aug 29, 2017 · 1 comment
Closed

Unable to run scripts/test #79

ohmyjersh opened this issue Aug 29, 2017 · 1 comment

Comments

@ohmyjersh
Copy link
Contributor

When converting our application to rewired, I hit an issue when converting the tests to also use rewired. The error is: "ReferenceError: paths is not defined"

const override = require(paths.projectDir + '/config-overrides');

It looks like it's because it's trying to execute the above line of code before, const paths = require("../config/paths"); has been set.

Bubbling up this assignment fixes the issue, which I have created a pull request here: #78

Thanks for this library, it's freaking awesome.

@timarney
Copy link
Owner

Thanks react-app-rewired@1.2.4

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

2 participants