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

[Bug]: nuxt installation not work at all! #857

Open
2 tasks
gowy222 opened this issue Nov 1, 2024 · 8 comments
Open
2 tasks

[Bug]: nuxt installation not work at all! #857

gowy222 opened this issue Nov 1, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@gowy222
Copy link

gowy222 commented Nov 1, 2024

Reproduction

Just look at the complete log below

Describe the bug

step by step -> https://www.shadcn-vue.com/docs/installation/nuxt.html

and then:

⬢ [Docker] ❯ npx nuxi@latest init my-app

✔ Which package manager would you like to use?
pnpm
[start] Installing dependencies...
! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee.
! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager

Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 80, reused 80, downloaded 0, added 0
Progress: resolved 350, reused 304, downloaded 0, added 0
Progress: resolved 694, reused 600, downloaded 0, added 0
 WARN  7 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Packages: +603
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 697, reused 603, downloaded 0, added 86
Progress: resolved 697, reused 603, downloaded 0, added 437
Progress: resolved 697, reused 603, downloaded 0, added 474
Progress: resolved 697, reused 603, downloaded 0, added 603, done

> nuxt-app@ postinstall /workspace/my-app
> nuxt prepare

[success] Types generated in .nuxt

dependencies:
+ nuxt 3.13.2
+ vue 3.5.12
+ vue-router 4.4.5

Done in 11.4s
[success] Installation completed.

✔ Initialize git repository?
No
[log] 
✨ Nuxt project has been created with the `v3` template. Next steps:
[log]  › `cd my-app`
[log]  › Start development server with `pnpm run dev`

root in workspace on  main [?] via  v20.18.0 took 18s 
⬢ [Docker] ❯ cd my-app

root in workspace/my-app on  main [?] via  v20.18.0 
⬢ [Docker] ❯ pnpm add typescript -D
Progress: resolved 0, reused 1, downloaded 0, added 0
Progress: resolved 33, reused 33, downloaded 0, added 0
Progress: resolved 442, reused 418, downloaded 0, added 0
 WARN  7 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Packages: +14
++++++++++++++
Progress: resolved 698, reused 604, downloaded 0, added 14, done

devDependencies:
+ typescript 5.6.3

Done in 3.4s

root in workspace/my-app on  main [?] via  v20.18.0 took 3s 
⬢ [Docker] ❯ pnpm add @nuxtjs/tailwindcss -D
Progress: resolved 0, reused 1, downloaded 0, added 0
Progress: resolved 26, reused 19, downloaded 0, added 0
Progress: resolved 534, reused 510, downloaded 0, added 0
Progress: resolved 771, reused 677, downloaded 0, added 0
 WARN  7 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Packages: +76
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 774, reused 680, downloaded 0, added 76, done

devDependencies:
+ @nuxtjs/tailwindcss 6.12.2

Done in 4.5s

root in workspace/my-app on  main [?] via  v20.18.0 took 4s 
⬢ [Docker] ❯ npx nuxi@latest module add shadcn-nuxt
[info] Installing `shadcn-nuxt@latest` dependency
Progress: resolved 0, reused 1, downloaded 0, added 0
Progress: resolved 148, reused 148, downloaded 0, added 0
Progress: resolved 480, reused 456, downloaded 0, added 0
 WARN  7 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Packages: +2
++
Progress: resolved 776, reused 682, downloaded 0, added 2, done

dependencies:
+ shadcn-nuxt 0.10.4

Done in 3.5s
[info] Adding `shadcn-nuxt` to the `modules`
[warn] ENOENT: no such file or directory, scandir '/workspace/my-app/components/ui'
[warn] Components directory not found: `/workspace/my-app/components/ui`
[success] Types generated in .nuxt

root in workspace/my-app on  main [?] via  v20.18.0 took 10s 
⬢ [Docker] ❯ npx shadcn-vue@latest init
✔ Would you like to use TypeScript? (recommended)? … no / yes
✔ Which framework are you using? › Nuxt
✔ Which style would you like to use? › New York
✔ Which color would you like to use as base color? › Slate
✔ Where is your tsconfig.json file? … .nuxt/tsconfig.json
✔ Where is your global CSS file? (this file will be overwritten) … assets/css/tailwind.css
✔ Would you like to use CSS variables for colors? … no / yes
✔ Are you using a custom tailwind prefix eg. tw-? (Leave blank if not) … 
✔ Where is your tailwind.config located? (this file will be overwritten) … tailwind.config.js
✔ Configure the import alias for components: … @/components
✔ Configure the import alias for utils: … @/lib/utils
✔ Write configuration to components.json. Proceed? … yes
[log]
- Writing components.json...
✔ Writing components.json...
- Initializing project...
[log]
[info] Detected a Nuxt project with 'shadcn-nuxt' v0.10.4...
✔ Initializing project...
- Installing dependencies...
✔ Installing dependencies...
[log]
[info] Success! Project initialization completed.
[log]

root in workspace/my-app on  main [?] via  v20.18.0 took 26s 
⬢ [Docker] ❯ pnpm dev

> nuxt-app@ dev /workspace/my-app
> nuxt dev

[log] Nuxt 3.13.2 with Nitro 2.9.7
[log] 
  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

[info] Using `2024-04-03` as fallback compatibility date.
[info] [nuxt:tailwindcss] Using Tailwind CSS from ~/assets/css/tailwind.css
[warn] ENOENT: no such file or directory, scandir '/workspace/my-app/components/ui'
[log]   ➜ DevTools: press Shift + Alt + D in the browser (v1.6.0)

[warn] [nuxt:tailwindcss] Failed to load config `./tailwind.config.js` due to the error below. Skipping..
 Cannot find module 'tailwindcss-animate'
Require stack:
- /workspace/my-app/tailwind.config.js
  Require stack:
  - tailwind.config.js
  at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
  at Function.resolve (node:internal/modules/helpers:190:19)
  at _resolve (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:241814)
  at jiti (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:244531)
  at tailwind.config.js:1:92
  at evalModule (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:247313)
  at jiti (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:245241)
  at /workspace/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/lib/load-config.js:56:30
  at loadConfig (/workspace/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/lib/load-config.js:58:6)
  at /workspace/node_modules/.pnpm/@[email protected]/node_modules/@nuxtjs/tailwindcss/dist/module.mjs:230:41
[info] [nuxt:tailwindcss] Tailwind Viewer: http://localhost:3000/_tailwind/
[warn] Components directory not found: `/workspace/my-app/components/ui`
[info] Compiled `plugins/server.mjs` in 4541.18ms
[info] Compiled `plugins/client.mjs` in 5279.67ms
[info] Compiled `types/plugins.d.ts` in 5713.31ms
[success] Vite client built in 230ms
[success] Vite server built in 1077ms
[warn]
[warn] warn - No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.
[warn] warn - https://tailwindcss.com/docs/content-configuration
[error] Pre-transform error: [postcss] /workspace/my-app/assets/css/tailwind.css:1:1: The `border-border` class does not exist. If `border-border` is a custom class, make sure it is defined within a `@layer` directive.
[success] [nitro] Nuxt Nitro server built in 1517 ms
[info] Nuxt now supports pinning the behavior of provider and deployment presets with a compatibility date. We recommend you specify a `compatibilityDate` in your `nuxt.config` file, or set an environment variable, such as `COMPATIBILITY_DATE=2024-11-01`.
[info] Vite client warmed up in 1ms
[info] Vite server warmed up in 699ms
^C
root in workspa



root in workspace/my-app on  main [?] via  v20.18.0 took 30s 
⬢ [Docker] ❯ npx shadcn-vue@latest add button
- Installing components...
✔ Done.

root in workspace/my-app on  main [?] via  v20.18.0 took 3s 
⬢ [Docker] ❯ pnpm dev

> nuxt-app@ dev /workspace/my-app
> nuxt dev

[log] Nuxt 3.13.2 with Nitro 2.9.7
[log] 
  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

[info] Using `2024-04-03` as fallback compatibility date.
[info] [nuxt:tailwindcss] Using Tailwind CSS from ~/assets/css/tailwind.css
[log]   ➜ DevTools: press Shift + Alt + D in the browser (v1.6.0)

[warn] [nuxt:tailwindcss] Failed to load config `./tailwind.config.js` due to the error below. Skipping..
 Cannot find module 'tailwindcss-animate'
Require stack:
- /workspace/my-app/tailwind.config.js
  Require stack:
  - tailwind.config.js
  at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
  at Function.resolve (node:internal/modules/helpers:190:19)
  at _resolve (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:241814)
  at jiti (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:244531)
  at tailwind.config.js:1:92
  at evalModule (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:247313)
  at jiti (/workspace/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:245241)
  at /workspace/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/lib/load-config.js:56:30
  at loadConfig (/workspace/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/lib/load-config.js:58:6)
  at /workspace/node_modules/.pnpm/@[email protected]/node_modules/@nuxtjs/tailwindcss/dist/module.mjs:230:41
[info] [nuxt:tailwindcss] Tailwind Viewer: http://localhost:3000/_tailwind/
[info] Compiled `plugins/server.mjs` in 4045.46ms
[info] Compiled `plugins/client.mjs` in 4742.87ms
[info] Compiled `types/plugins.d.ts` in 4973.53ms
[success] Vite client built in 185ms
[success] Vite server built in 917ms
[error] Pre-transform error: [postcss] /workspace/my-app/assets/css/tailwind.css:1:1: The `border-border` class does not exist. If `border-border` is a custom class, make sure it is defined within a `@layer` directive.
[error] Pre-transform error: Failed to resolve import "class-variance-authority" from "components/ui/button/index.ts". Does the file exist?
[error] Pre-transform error: [@vue/compiler-sfc] Failed to resolve extends base type.
If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:

interface Props extends /* @vue-ignore */ Base {}

Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.

/workspace/my-app/components/ui/button/Button.vue
5  |  import { type ButtonVariants, buttonVariants } from '.'
6  |  
7  |  interface Props extends PrimitiveProps {
   |                          ^^^^^^^^^^^^^^
8  |    variant?: ButtonVariants['variant']
9  |    size?: ButtonVariants['size']
[success] [nitro] Nuxt Nitro server built in 1022 ms
[info] Nuxt now supports pinning the behavior of provider and deployment presets with a compatibility date. We recommend you specify a `compatibilityDate` in your `nuxt.config` file, or set an environment variable, such as `COMPATIBILITY_DATE=2024-11-01`.
[info] Vite client warmed up in 1ms
[info] Vite server warmed up in 589ms
^C
root in workspace/my-app on  main [?] via  v20.18.0 took 18s 
⬢ [Docker] ❯ 


root in workspace/my-app on  main [?] via  v20.18.0 
⬢ [Docker] ❯ tree
.
├── README.md
├── app.vue
├── assets
│   └── css
│       └── tailwind.css
├── components
│   └── ui
│       └── button
│           ├── Button.vue
│           └── index.ts
├── components.json
├── lib
│   └── utils.ts
├── node_modules
│   ├── @nuxtjs
│   │   └── tailwindcss -> ../.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxtjs/tailwindcss
│   ├── @radix-icons
│   │   └── vue -> ../.pnpm/@[email protected][email protected][email protected]_/node_modules/@radix-icons/vue
│   ├── nuxt -> .pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]_h5wkhn5rt5oqmxk66g7h2pvke4/node_modules/nuxt
│   ├── shadcn-nuxt -> .pnpm/[email protected][email protected][email protected]/node_modules/shadcn-nuxt
│   ├── typescript -> .pnpm/[email protected]/node_modules/typescript
│   ├── vue -> .pnpm/[email protected][email protected]/node_modules/vue
│   └── vue-router -> .pnpm/[email protected][email protected][email protected]_/node_modules/vue-router
├── nuxt.config.ts
├── package.json
├── pnpm-lock.yaml
├── public
│   ├── favicon.ico
│   └── robots.txt
├── server
│   └── tsconfig.json
├── tailwind.config.js
└── tsconfig.json

19 directories, 15 files


System Info

cloud ide(cnb.coo) - code server 
node lts: v20.18.0
pnpm: 9.12.2





System Information:

Linux d57f78a70171 5.4.241-1-tlinux4-0017.12 #1 SMP Fri Aug 2 14:51:21 CST 2024 x86_64 GNU/Linux

OS Release Info:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Memory Info:

               total        used        free      shared  buff/cache   available
Mem:            16Gi       1.0Gi        14Gi          0B       803Mi        14Gi
Swap:             0B          0B          0B

Disk Info:

Filesystem             Size  Used Avail Use% Mounted on
overlay                128G  466M  128G   1% /
tmpfs                   64M     0   64M   0% /dev
tmpfs                  252G     0  252G   0% /sys/fs/cgroup
shm                    2.0G     0  2.0G   0% /dev/shm
/dev/vda1               50G  9.1G   38G  20% /usr/sbin/docker-init
git-clone-yyds         128G  617M  128G   1% /workspace
/dev/mapper/vg01-lv01  128G  617M  128G   1% /run/.git
tmpfs                  252G     0  252G   0% /proc/acpi
tmpfs                  252G     0  252G   0% /proc/scsi
tmpfs                  252G     0  252G   0% /sys/firmware

CPU Info:

Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         43 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  192
  On-line CPU(s) list:   0-7
  Off-line CPU(s) list:  8-191

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@gowy222 gowy222 added the bug Something isn't working label Nov 1, 2024
@jamesallan93
Copy link

I'm having the same issue.
Did you made the PR?

@jamesallan93
Copy link

jamesallan93 commented Nov 2, 2024

Fixed the issue:

"aliases": {
    "components": "components", //was "@/components"
    "utils": "lib/utils" //was "@/"lib/utils"
  }

the problem here was that components and utils had @ on it, i just removed it.

Also there are missing dependency that i had to manually install:

class-variance-authority and radix-vue as exemple.

I think that shadcn-vue shouldn't be used in production or big projects, its pretty and cool but its all broken.

@rugor
Copy link

rugor commented Nov 3, 2024

Fixed the issue:

"aliases": {
    "components": "components", //was "@/components"
    "utils": "lib/utils" //was "@/"lib/utils"
  }

the problem here was that components and utils had @ on it, i just removed it.

Also there are missing dependency that i had to manually install:

class-variance-authority and radix-vue as exemple.

I think that shadcn-vue shouldn't be used in production or big projects, its pretty and cool but its all broken.

thanks, this helped me fix the issue also

@beejaz
Copy link
Contributor

beejaz commented Nov 3, 2024

Did you do step 5 https://www.shadcn-vue.com/docs/installation/nuxt.html ?

export default defineNuxtConfig({
  modules: ['@nuxtjs/tailwindcss', 'shadcn-nuxt'],
  shadcn: {
    /**
     * Prefix for all the imported component
     */
    prefix: '',
    /**
     * Directory that the component lives in.
     * @default "./components/ui"
     */
    componentDir: './components/ui'
  }
})

@rugor
Copy link

rugor commented Nov 3, 2024 via email

@selemondev
Copy link
Contributor

Fixed the issue:

"aliases": {
    "components": "components", //was "@/components"
    "utils": "lib/utils" //was "@/"lib/utils"
  }

the problem here was that components and utils had @ on it, i just removed it.

Also there are missing dependency that i had to manually install:

class-variance-authority and radix-vue as exemple.

I think that shadcn-vue shouldn't be used in production or big projects, its pretty and cool but its all broken.

Hey @jamesallan93, this PR intends on fixing the issue above 😊.

@naveensky
Copy link

Thanks, this worked for me as well.

Fixed the issue:

"aliases": {
    "components": "components", //was "@/components"
    "utils": "lib/utils" //was "@/"lib/utils"
  }

the problem here was that components and utils had @ on it, i just removed it.

Also there are missing dependency that i had to manually install:

class-variance-authority and radix-vue as exemple.

I think that shadcn-vue shouldn't be used in production or big projects, its pretty and cool but its all broken.

@sadeghbarati sadeghbarati added upstream Related to Vue Core or VueUse or Volar or other packages and removed upstream Related to Vue Core or VueUse or Volar or other packages labels Nov 9, 2024
@gowy222
Copy link
Author

gowy222 commented Nov 10, 2024

v0.11.2

https://www.shadcn-vue.com/docs/installation/nuxt.html
step 4:

npx nuxi@latest module add shadcn-nuxt

root@85767f5c8e47:/workspace/my-app# npx nuxi@latest module add shadcn-nuxt
(node:1874) ExperimentalWarning: Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[info] Installing `shadcn-nuxt@latest` dependency
Progress: resolved 0, reused 1, downloaded 0, added 0
Progress: resolved 18, reused 17, downloaded 1, added 0
Progress: resolved 117, reused 116, downloaded 1, added 0
Progress: resolved 434, reused 433, downloaded 1, added 0
 WARN  6 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Packages: +2
++
Progress: resolved 765, reused 690, downloaded 1, added 1
Progress: resolved 765, reused 690, downloaded 2, added 2, done

dependencies:
+ shadcn-nuxt 0.11.2

Done in 5s
[info] Adding `shadcn-nuxt` to the `modules`
[info] [nuxt:tailwindcss] Using default Tailwind CSS file
[error] Nuxt module should be a function: @nuxtjs/color-mode
  at loadNuxtModuleInstance (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2460:11)
  at async installModule (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2389:47)
  at async setup (node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/shadcn-nuxt/dist/module.mjs:46:5)
  at async normalizedModule (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2140:17)
  at async installModule (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2397:95)
  at async initNuxt (node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]_rollup@4._oj52vvaqwdjakw7vhfwwy7k6ee/node_modules/nuxt/dist/index.mjs:4669:5)
  at async loadNuxt (node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]_rollup@4._oj52vvaqwdjakw7vhfwwy7k6ee/node_modules/nuxt/dist/index.mjs:4839:5)
  at async loadNuxt (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2627:19)
  at async Object.run (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/chunks/prepare.mjs:61:18)
  at async runCommand$1 (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1648:16)
  at async runCommand (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:2019:10)
  at async Object.setup (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/chunks/add2.mjs:197:5)
  at async runCommand$1 (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1620:5)
  at async runCommand$1 (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1639:11)
  at async runCommand$1 (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1639:11)
  at async runMain$1 (/root/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1777:7) 

[error] Nuxt module should be a function: @nuxtjs/color-mode
root@85767f5c8e47:/workspace/my-app# 

try pnpx nuxi@latest module add shadcn-nuxt

root@85767f5c8e47:/workspace/my-app# pnpx nuxi@latest module add shadcn-nuxt
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1
+
Progress: resolved 1, reused 0, downloaded 1, added 1, done
[info] Installing `shadcn-nuxt@latest` dependency
Progress: resolved 0, reused 1, downloaded 0, added 0
Progress: resolved 16, reused 16, downloaded 0, added 0
Progress: resolved 182, reused 182, downloaded 0, added 0
Progress: resolved 581, reused 557, downloaded 0, added 0
 WARN  6 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Already up to date
Progress: resolved 765, reused 692, downloaded 0, added 0, done

Done in 4.1s
[info] `shadcn-nuxt` is already in the `modules`
[info] [nuxt:tailwindcss] Using default Tailwind CSS file
[error] Nuxt module should be a function: @nuxtjs/color-mode
  at loadNuxtModuleInstance (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2460:11)
  at async installModule (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2389:47)
  at async setup (node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/shadcn-nuxt/dist/module.mjs:46:5)
  at async normalizedModule (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2140:17)
  at async installModule (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2397:95)
  at async initNuxt (node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]_rollup@4._oj52vvaqwdjakw7vhfwwy7k6ee/node_modules/nuxt/dist/index.mjs:4669:5)
  at async loadNuxt (node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]_rollup@4._oj52vvaqwdjakw7vhfwwy7k6ee/node_modules/nuxt/dist/index.mjs:4839:5)
  at async loadNuxt (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2627:19)
  at async Object.run (/root/.cache/pnpm/dlx/p6mpn5xjw7rpzdkp6svcvil6ve/19313c47a9b-e32/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/prepare.mjs:61:18)
  at async runCommand$1 (/root/.cache/pnpm/dlx/p6mpn5xjw7rpzdkp6svcvil6ve/19313c47a9b-e32/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1648:16) 

[error] Nuxt module should be a function: @nuxtjs/color-mode
root@85767f5c8e47:/workspace/my-app# 

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

No branches or pull requests

7 participants