Closed 5punk closed 6 years ago
No sure how to deal with that. Are there other packages that you know of that work in both places without conditional imports? Maybe I could sense if window.LocalStorage already existed and if so, return that in my constructor. Can you modify it and try that to see if that works?
Sorry for digging this up, but I am using it like this with no errors:
import { LocalStorage } from 'node-localstorage';
I am writing an isomorphic app, which doesn't allow conditional imports.
If i go ahead and import it anyway I get an error
Any help?