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

When SSR: false, color-mode not working #143

Closed
franmellanutritienda opened this issue May 5, 2022 · 2 comments · Fixed by #149
Closed

When SSR: false, color-mode not working #143

franmellanutritienda opened this issue May 5, 2022 · 2 comments · Fixed by #149
Labels
bug Something isn't working

Comments

@franmellanutritienda
Copy link

franmellanutritienda commented May 5, 2022

Version

@nuxtjs/color-mode: 3.0.2
nuxt: 3.0.0-rc.2

Reproduction Link

Steps to reproduce

What is Expected?

What is actually happening?

Cannot read properties of undefined (reading 'preference')

at http://localhost:3000/_nuxt/node_modules/@nuxtjs/color-mode/dist/runtime/plugin.client.mjs:8:24
at useState (http://localhost:3000/_nuxt/node_modules/nuxt/dist/app/composables/state.mjs:7:26)
at http://localhost:3000/_nuxt/node_modules/@nuxtjs/color-mode/dist/runtime/plugin.client.mjs:7:21
at fn (http://localhost:3000/_nuxt/node_modules/nuxt/dist/app/nuxt.mjs:106:27)
at callWithNuxt (http://localhost:3000/_nuxt/node_modules/nuxt/dist/app/nuxt.mjs:111:12)
at applyPlugin (http://localhost:3000/_nuxt/node_modules/nuxt/dist/app/nuxt.mjs:68:29)
at applyPlugins (http://localhost:3000/_nuxt/node_modules/nuxt/dist/app/nuxt.mjs:77:11)
at async initApp (http://localhost:3000/_nuxt/entry.mjs:44:7)

@franmellanutritienda franmellanutritienda added the bug Something isn't working label May 5, 2022
@cdowning
Copy link

cdowning commented May 9, 2022

I am also experiencing this issue.

@jsegars
Copy link

jsegars commented May 12, 2022

I believe this is related to a change in Nuxt shortly before the RC where a Nitro hook was removed. It is mentioned in the PR #139 but there's not any code to fix it yet.

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.

3 participants