N
Nuxt2y ago
Nossie

Nuxt 3 Layers Broken ?

Is it me or is the Layer option ( extend) broken in nuxt ? everything works when running localy but when trying to run a build for production it breaks even on a simple extend of 1 component BTW this is only when using a extend from a github repo giving the following error
ERROR [vite]: Rollup failed to resolve import "vue/server-renderer" from "/Users/***/.cache/c12/***/components/Button.vue". 1:28:38 PM
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
ERROR [vite]: Rollup failed to resolve import "vue/server-renderer" from "/Users/***/.cache/c12/***/components/Button.vue". 1:28:38 PM
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
8 Replies
manniL
manniL2y ago
Do you have a reproduction?
miclgael
miclgael2y ago
there’s an open issue for this I’ll find
miclgael
miclgael2y ago
GitHub
Failed to use generate when extends from a GitHub repo · Issue #1...
Environment RootDir: C:/Users/esoubiran/dev/ArmoniK.Api/.docs 15:19:52 Nuxt project info: 15:19:52 Operating System: Windows_NT Node Version: v18.12.1 Nuxt Version: 3.0.0 Nitro Version: 1.0.0 Packa...
miclgael
miclgael2y ago
Not just you @Nossie 🙂 I am working around this by including a temp directory inside my repo.( a bit gross. ) I might be able to get a stackblitz repro for you tomorrow @manniL / TheAlexLichter
Nossie
NossieOP2y ago
yeah the only possible nice sollution is to use NPM package as layer .. because you dont want to have 2 projects next to each other when publishing, so thats why i thought the repo option would be nice, but yeah that's not working indeed.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
miclgael
miclgael2y ago
GitHub
Failed to use generate when extends from a GitHub repo · Issue #1...
Environment RootDir: C:/Users/esoubiran/dev/ArmoniK.Api/.docs 15:19:52 Nuxt project info: 15:19:52 Operating System: Windows_NT Node Version: v18.12.1 Nuxt Version: 3.0.0 Nitro Version: 1.0.0 Packa...
Mads
Mads2y ago
I'm getting same on a monorepo, when deploying to Vercel
Want results from more Discord servers?
Add your server