N
Nuxt7mo ago
Zampa

Nuxt + rolldown-vite

I followed the instructions for adding rolldown-vite, and as an override for vite, but on nuxt dev I just see an error:
thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/oxc_ast-0.67.0/src/generated/get_id.rs:36:33:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/oxc_ast-0.67.0/src/generated/get_id.rs:36:33:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
11 Replies
kapa.ai
kapa.ai7mo ago
Hi @Zampa. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources do not contain enough information to diagnose or resolve the specific Rust panic error you are encountering when using Nuxt with rolldown-vite. The available sources confirm that experimental support for rolldown-vite has been added to Nuxt, and mention some current issues and limitations (such as lack of watch mode, certain unsupported Rollup options, and plugin compatibility), but they do not mention Rust panics or errors related to oxc_ast or provide troubleshooting steps for this scenario feat(nuxt,vite): add experimental support for rolldown-vite. If you continue to experience this issue, it may be helpful to check for updates on the official Nuxt or rolldown-vite repositories, or to open a new issue with detailed logs and reproduction steps. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai7mo ago
<@230365865697083404> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
manniL
manniL7mo ago
GitHub
error: called Option::unwrap() on a None value code: "GenericF...
Describe the regression Getting error: called Option::unwrap() on a None value code: "GenericFailure" in rolldown-vite app using react-router v7 in running dev mode. Building still wo...
harlan (on holiday 🇨🇱)
oh damn, I just assumed Nuxt wasn't supported yet just tried it and it's working 🤯
manniL
manniL7mo ago
Yes! Hopefully soon even a bit better than right now. Working on it 😄
Zampa
ZampaOP7mo ago
[nuxi 9:42:39 PM] ERROR Cannot start nuxt: Loading @nuxt/vite-builder builder failed. You can read more about the nuxt builder option at: https://nuxt.com/docs/api/nuxt-config#builder tried a completely vanilla Nuxt app with nothing in it and got ERROR Package subpath './filter' is not defined by "exports"
Sleny.Zl
Sleny.Zl6mo ago
Hi,@Nathan Chase,may I ask if you have solved this problem? I have same error like this.
[nuxi 01:59:30] ERROR Cannot start nuxt: Loading @nuxt/vite-builder builder failed. You can read more about the nuxt builder option at: https://nuxt.com/docs/api/nuxt-config#builder

at loadBuilder (node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7400:11)
at async bundle (node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7386:76)
at async build (node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7247:3)
at async Promise.all (index 1)
at async NuxtDevServer._load (node_modules/@nuxt/cli/dist/chunks/dev2.mjs:219:5)
at async NuxtDevServer.load (node_modules/@nuxt/cli/dist/chunks/dev2.mjs:111:7)
at async NuxtDevServer.init (node_modules/@nuxt/cli/dist/chunks/dev2.mjs:106:5)
at async Object.run (node_modules/@nuxt/cli/dist/chunks/dev-child.mjs:94:5)
at async runCommand (node_modules/citty/dist/index.mjs:316:16)
at async runCommand (node_modules/citty/dist/index.mjs:307:11)
[nuxi 01:59:30] ERROR Cannot start nuxt: Loading @nuxt/vite-builder builder failed. You can read more about the nuxt builder option at: https://nuxt.com/docs/api/nuxt-config#builder

at loadBuilder (node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7400:11)
at async bundle (node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7386:76)
at async build (node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7247:3)
at async Promise.all (index 1)
at async NuxtDevServer._load (node_modules/@nuxt/cli/dist/chunks/dev2.mjs:219:5)
at async NuxtDevServer.load (node_modules/@nuxt/cli/dist/chunks/dev2.mjs:111:7)
at async NuxtDevServer.init (node_modules/@nuxt/cli/dist/chunks/dev2.mjs:106:5)
at async Object.run (node_modules/@nuxt/cli/dist/chunks/dev-child.mjs:94:5)
at async runCommand (node_modules/citty/dist/index.mjs:316:16)
at async runCommand (node_modules/citty/dist/index.mjs:307:11)
Zampa
ZampaOP6mo ago
no I haven't yet - mainly because rolldown-vite uses lightningcss and it's not compatible with some of the postcss I'm using
Sleny.Zl
Sleny.Zl6mo ago
Ok,thank you for your reply.🤝
manniL
manniL6mo ago
An issue would be helpful though!
Sleny.Zl
Sleny.Zl6mo ago
Yeah,you're right.Thank you for your suggestion. And I have solved this problem,it was caused of changing npm registry, when I change it to official registry, then it's working.

Did you find this page helpful?