nuxt-modules / color-mode

Dark and Light mode with auto detection made easy with Nuxt 🌗
https://color-mode.nuxtjs.org
MIT License
1.08k stars 99 forks source link

Uncaught SyntaxError head script in Nuxt Bridge #181

Open priverop opened 1 year ago

priverop commented 1 year ago

After installing this module I get this error in the console: "Uncaught SyntaxError: Identifier 'w' has already been declared". I feel like it's trying to add the head script twice. Not sure.

Version

@nuxtjs/color-mode: 3.2.0 nuxt-edge: latest (2.16.0-27720022.54e852f in the yarn.lock)

Reproduction Link

I created a minimal Github repo to reproduce the error.

Steps to reproduce

  1. Yarn install
  2. Yarn dev
  3. Open the project in the browser
  4. Open the console

What is Expected?

I expect no errors to show.

What is actually happening?

I get a syntaxerror.

ThomasSimonsen20 commented 1 year ago

Did you figure something out here? I've run into the same issue

priverop commented 1 year ago

No progress I'm sorry.