content icon indicating copy to clipboard operation
content copied to clipboard

`rollup-plugin-inject` failed to parse onig.wasm

Open awdr74100 opened this issue 1 year ago • 5 comments

Environment

  • Operating System: Darwin
  • Node Version: v20.11.0
  • Nuxt Version: 3.9.3
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules, content
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Reproduction

Start a fresh Nuxt Content project with:

pnpm dlx nuxi@latest init content-app -t content

Define configuration:

export default defineNuxtConfig({
  devtools: { enabled: false },
  modules: ["@nuxt/content"],
  content: {
    highlight: {
      theme: {
        dark: "github-dark",
        light: "github-light",
      },
    },
  },
});

Start the development server:

pnpm dev

Describe the bug

截圖 2024-01-22 下午7 31 21

A warning message appears on the console. Is this the expected result? There seems to be no such problem in the previous version.

Additional context

No response

Logs

No response

awdr74100 avatar Jan 22 '24 11:01 awdr74100

FYI, I believe that this is causing code highlighting to fail on 2.11.0 when running in development mode (via nuxi dev).

TheMrMilchmann avatar Jan 24 '24 00:01 TheMrMilchmann

You can safely ignore this warning (will be solved in next minor version of Nitro).

If you are facing a syntax highlighter failing to work, it might be another issue. Please provide a reproduction 🙏🏼

pi0 avatar Jan 24 '24 00:01 pi0

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jul 18 '24 15:07 github-actions[bot]

Same problem but i don't use @nuxt/[email protected] I think problem from the who is shiki ?

puuble avatar Aug 09 '24 09:08 puuble