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

Nuxt build fails with builder: "rspack" #3220

Open
geforseN opened this issue Nov 13, 2024 · 0 comments
Open

Nuxt build fails with builder: "rspack" #3220

geforseN opened this issue Nov 13, 2024 · 0 comments

Comments

@geforseN
Copy link

geforseN commented Nov 13, 2024

Environment

  • Operating System: Linux
  • Node Version: v20.17.0
  • Nuxt Version: 3.14.159
  • CLI Version: 3.15.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: rspack
  • User Config: default
  • Runtime Modules: @nuxtjs/[email protected]
  • Build Modules: -

Reproduction

  1. Using Stackblitz: Go to Stackblitz, check out the feat/add-i18n-module branch, install dependencies, and try to build.

  2. Using local environment:

    git clone https://github.com/geforseN/nuxt-rspack-starter
    cd nuxt-rspack-starter
    git checkout feat/add-i18n-module
    pnpm i
    pnpm build

Describe the bug

Issue: Build fails when using @nuxtjs/i18n with Rspack builder in Nuxt 3.14

Description

Nuxt 3.14 introduced Rspack builder. I forked the suggested starter project and added the @nuxtjs/i18n package. Running the build script results in the following error:

ERROR  Nuxt Build Error: Nuxt build error

  × Module build failed:
  ╰─▶   × Reading from "virtual:nuxt-i18n-logger" is not handled by plugins (Unhandled scheme).
  │ Rspack supports "data:" and "file:" URIs by default.
  │ You may need an additional plugin to handle "virtual:" URIs.

I tried to resolve the issue by adjusting the import path in import { createLogger } from "virtual:nuxt-i18n-logger";, but this did not fix the problem. I’d be happy to assist in any way I can to help resolve this issue.

Additional context

nuxt/nuxt#29165
nuxt/nuxt#29142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant