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

Cannot read properties of undefined (reading 'colorMode') #158

Closed
Luferov opened this issue Sep 6, 2022 · 4 comments · Fixed by #159
Closed

Cannot read properties of undefined (reading 'colorMode') #158

Luferov opened this issue Sep 6, 2022 · 4 comments · Fixed by #159
Labels
bug Something isn't working

Comments

@Luferov
Copy link

Luferov commented Sep 6, 2022

Version

@nuxtjs/color-mode: ^3.1.4
nuxt-bridge:

Reproduction Link

image### What is Expected?

What is actually happening?

When ssr server crashes with an error

@Luferov Luferov added the bug Something isn't working label Sep 6, 2022
@Luferov
Copy link
Author

Luferov commented Sep 6, 2022

When options?.colorMode - works good!

@Luferov
Copy link
Author

Luferov commented Sep 6, 2022

Sometimes work smonetimes no
image

@Luferov
Copy link
Author

Luferov commented Sep 6, 2022

I found a pattern. This happens when using

const router = useRouter()
router.push(...)

on server

@danielroe
Copy link
Collaborator

Do you have a reproduction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants