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

plugin inject onig.wasm warning #29

Open
leosin opened this issue Apr 12, 2024 · 1 comment
Open

plugin inject onig.wasm warning #29

leosin opened this issue Apr 12, 2024 · 1 comment

Comments

@leosin
Copy link

leosin commented Apr 12, 2024

[21:01:24] WARN [plugin inject] ../../node_modules/.pnpm/[email protected]/node_modules/shiki/dist/onig.wasm: rollup-plugin-inject: failed to parse /Users/abc/Projects/xxx/node_modules/.pnpm/[email protected]/node_modules/shiki/dist/onig.wasm. Consider restricting the plugin to particular files via options.include

Please help take a look, I'm not sure if this warning comes from the current module, or the upstream shiki plugin.

I remember it was still fine in nuxt version 3.10.3 and shiki 1.2.4

I'm currently using pnpm workspace, and nuxt 3.11.2

@mateusznarowski
Copy link

mateusznarowski commented Apr 15, 2024

I have also been struggling with this warning for a couple of days, at the moment I have discovered that the warning only appears when I have added one of these 3 modules

nuxt-delay-hydration
nuxt-simple-robots
nuxt-schema-org

These 3 modules are from https://github.com/harlan-zw so it appears that something is interfering between them, warning does not appear on version 0.2.1 only on version 0.3.0

After checking for changes between versions, I see that in this issue #23, option with setting nitro.experimental.wasm: true removes the warning

export default defineNuxtConfig({
  nitro: {
    experimental: {
      wasm: true,
    },
  },
})

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

No branches or pull requests

2 participants