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

Error: Cannot read property '_location' of null #1960

Closed
laginha opened this issue Aug 24, 2017 · 1 comment
Closed

Error: Cannot read property '_location' of null #1960

laginha opened this issue Aug 24, 2017 · 1 comment

Comments

@laginha
Copy link

laginha commented Aug 24, 2017

Command: react-scripts test --env=jsdom (jest)

react-scripts version: 1.0.11
jsdom version: 9.8.3 (I later upgraded to 11.2.0 but the results were the same)

/code/node_modules/react-scripts/scripts/test.js:22
  throw err;
  ^

TypeError: Cannot read property '_location' of null
    at Window.get location [as location] (/code/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/browser/Window.js:148:79)

Any ideas on how to fix or avoid this error?

@domenic
Copy link
Member

domenic commented Aug 24, 2017

Sorry, this did not follow the issue template and its instructions on how to create a minimal reproduction case with no third-party dependencies. Let me close this for now, and you can reply when you have updated the OP to follow the issue template and we'll reopen.

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