-
Notifications
You must be signed in to change notification settings - Fork 322
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
[Bug]: @nuxtjs/color-mode has not being installed by shadcn-nuxt #864
[Bug]: @nuxtjs/color-mode has not being installed by shadcn-nuxt #864
Comments
Workaround:
Example: export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "shadcn-nuxt", "@nuxtjs/color-mode"],
colorMode: {
classSuffix: "",
},
}); |
Just for the information: upgrading to Nuxt 3.14.159 (that includes nuxt/nuxt#29799 fix) doesn't help. I mean,
|
Hi, could you guys test it with the latest Nuxt version |
The issue persists with Nuxt v3.14.159. The problem is |
Yeah I have seen the error after testing with @selemon-dev, If it is only updating the nuxt.config then |
What Nuxt PR? If you mean nuxt/nuxt#29799 than it is already merged into Manually adding |
Hey @sadeghbarati, the |
Just a quick update - as others mentioned, error still persists with nuxt |
[DOCS](https://www.shadcn-vue.com/docs/installation/nuxt.html) 1. bun install 2. bun install -D typescript 3. bun x nuxi@latest module add @nuxtjs/tailwindcss 4. bun x nuxi@latest module add shadcn-nuxt - [Issue](unovue/shadcn-vue#864) - [Fix](nuxt/nuxt#29779 (comment)) 5. Config nuxt.config.ts 6. bun x shadcn-vue@latest init
Error persists with |
Regarding this comment, it worked for me. |
the bug here is that it should be a dependency (or peer dependency) of the module the bug in nuxt is simply a misleading error message |
Reproduction
https;//stackblitz.com/edit/nuxt-starter-pc9prp
Describe the bug
The documentation for Dark Mode states that shadcn-nuxt installs the
color-mode
module automatically. However, this does not happen.System Info
Contributes
The text was updated successfully, but these errors were encountered: