Skip to content

Fix for Next.js localstorage error#18

Open
vieira83 wants to merge 1 commit intorouftom:mainfrom
vieira83:dev-fix
Open

Fix for Next.js localstorage error#18
vieira83 wants to merge 1 commit intorouftom:mainfrom
vieira83:dev-fix

Conversation

@vieira83
Copy link

@vieira83 vieira83 commented Sep 14, 2023

Fix for next.js localstorage is not available on the server and will throw the error below and cause issues. This is safe check to bypass the error and allow this package to be used with Next.js.

  • error node_modules/react-mui-scheduler/dist/index.esm.js (285:0) @ eval
  • error ReferenceError: localStorage is not defined

…throw an error, this is safe check to bypass the error
@vieira83 vieira83 changed the title Fix for next.js localstorage is not available on the server and will … Fix for Next.js localstorage error Sep 14, 2023
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 this pull request may close these issues.

1 participant