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

NextJS ReferenceError #218

Closed
robertalv opened this issue Mar 25, 2024 · 1 comment · Fixed by #221
Closed

NextJS ReferenceError #218

robertalv opened this issue Mar 25, 2024 · 1 comment · Fixed by #221

Comments

@robertalv
Copy link

When trying to build with Vercel, issue being caused

 ⨯ node_modules/csv-import-react/build/index.esm.js (44363:0) @ persist.name
 ⨯ ReferenceError: localStorage is not defined

File: csv-import-react/build/index.esm.js

Temp Fix:
theme: typeof window !== 'undefined' ? localStorage.getItem(STORAGE_KEY) : 'light',

@robertalv
Copy link
Author

@civan Amazing

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

Successfully merging a pull request may close this issue.

1 participant