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

[flags] localStorage is used on Node, which throws an error #402

Closed
drazik opened this issue Apr 25, 2019 · 0 comments · Fixed by #403
Closed

[flags] localStorage is used on Node, which throws an error #402

drazik opened this issue Apr 25, 2019 · 0 comments · Fixed by #403
Labels

Comments

@drazik
Copy link
Contributor

drazik commented Apr 25, 2019

The following error is thrown in the cozy-banks service using [email protected]:

localStorage is not defined

I don't have the time to fix it now so I'm just downgrading cozy-flags in Banks. I will look at it asap if nobody have the time before me.

@drazik drazik added the flags label Apr 25, 2019
drazik added a commit to cozy/cozy-banks that referenced this issue Apr 25, 2019
[email protected] seems to try to use `localStorage` on node, which
doesn't work. See cozy/cozy-libs#402
drazik added a commit to cozy/cozy-banks that referenced this issue Apr 25, 2019
This is a feature from [email protected] which we downgraded due to
cozy/cozy-libs#402
drazik added a commit that referenced this issue Apr 26, 2019
Exposing FlagSwitcher on node context was causing an error in Node
context because it's importing the flags browser implementation and
`localStorage` doesn't exist in this context.

Fixes #402
drazik added a commit that referenced this issue May 2, 2019
Exposing FlagSwitcher on node context was causing an error in Node
context because it's importing the flags browser implementation and
`localStorage` doesn't exist in this context.

Fixes #402
drazik added a commit that referenced this issue May 3, 2019
Exposing FlagSwitcher on node context was causing an error in Node
context because it's importing the flags browser implementation and
`localStorage` doesn't exist in this context.

Fixes #402
drazik added a commit that referenced this issue May 3, 2019
Exposing FlagSwitcher on node context was causing an error in Node
context because it's importing the flags browser implementation and
`localStorage` doesn't exist in this context.

Fixes #402
drazik added a commit that referenced this issue May 3, 2019
Exposing FlagSwitcher on node context was causing an error in Node
context because it's importing the flags browser implementation and
`localStorage` doesn't exist in this context.

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

Successfully merging a pull request may close this issue.

1 participant