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

Can't compile when using Jest and some code seems to require window.localStorage #14

Open
renoirb opened this issue Jan 17, 2019 · 0 comments

Comments

@renoirb
Copy link

renoirb commented Jan 17, 2019

For some reason build broke with an error message mentioning localStorage.

To see an error sample, refer to renoirb/bindings types/constraint last build

❌   Test suite failed to run 
      ● Test suite failed to run
    SecurityError: localStorage is not available for opaque origins
      at Window.get localStorage [as localStorage] (../../../components/testers/jest/bit.envs/0.0.32/node_modules/jsdom/lib/jsdom/browser/Window.js:257:15)
          at Array.forEach (<anonymous>)

This feels like a @jest-environment node setting described in this issue

Maybe I need to upgrade my dependencies versions, or something I'm missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants