radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
3.51k stars 203 forks source link

[Bug]: Drawer not working in nuxt production #630

Closed AloisH closed 1 week ago

AloisH commented 1 week ago

Reproduction

https://github.com/AloisH/drawer-shadcn-nuxt

Describe the bug

When building a nuxt application with a Drawer, the Drawer won't work.

You can reproduce it using the following github: https://github.com/AloisH/drawer-shadcn-nuxt

$ npm run install
$ npm run dev # Work in dev mode -> http://locahost:3000 -> Big button with drawer
$ npm run build
$ node .output/server/index.mjs # Drawer not working anymore

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 12.75 GB / 15.58 GB
    Container: Yes
    Shell: 3.3.1 - /usr/bin/fish
  Binaries:
    Node: 18.20.3 - ~/.volta/tools/image/node/18.20.3/bin/node
    npm: 10.7.0 - ~/.volta/tools/image/node/18.20.3/bin/npm
    pnpm: 9.0.6 - ~/.local/share/pnpm/pnpm
    bun: 1.1.8 - ~/.bun/bin/bun
  npmPackages:
    nuxt: ^3.12.2 => 3.12.2
    radix-vue: ^1.8.4 => 1.8.4
    shadcn-nuxt: ^0.10.4 => 0.10.4
    vue: ^3.4.29 => 3.4.30

Contributes

AloisH commented 1 week ago

Linked to a prisma error (closing)