-
Notifications
You must be signed in to change notification settings - Fork 112
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
helper.getColorScheme is not a function error when trying to use the module #228
Comments
I also got the same error |
This issue also appears when testing a nuxt app. During testing, the error originates from here: color-mode/src/runtime/plugin.client.ts Lines 8 to 14 in 0d0e097
color-mode/src/runtime/plugin.client.ts Line 91 in 0d0e097
|
Did you find a fix for this error, I got the same while running a test? |
Kinda of, using In your repo, run helper?.removeColorScheme(oldValue);
helper?.addColorScheme(newValue); Go back to your repo and run You should have a file named Commit that, and your CI should now work as usual My patch file, for comparison:
|
I think the initialisation to an empty object in
Apparently, under some circumstances, the watchers fire when the I am just not sure which one is the best solution, as I just landed here by drilling down on a sentry issue we saw and do not have the necessary overview of this repo to decide whats best... Crashing with this error though, certainly is not optimal, so if I can help somehow to resolve this, I am willing to do so! |
Getting this error only on certain pages... It's very inconsistent. I have no indication of what part of my code might cause it because on my machine I do not get this error. |
Version
@nuxtjs/color-mode:
nuxt:
Reproduction Link
https://github.com/maxacarvalho/nuxtjs-color-mode
Steps to reproduce
npm install
npm run dev
What is Expected?
I expect to be able to switch between color modes
What is actually happening?
Nothing happens at first and then a 500 error is thrown
The text was updated successfully, but these errors were encountered: