Open leosin opened 3 months ago
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 https://github.com/pi0/nuxt-shiki/issues/23, option with setting nitro.experimental.wasm: true
removes the warning
export default defineNuxtConfig({
nitro: {
experimental: {
wasm: true,
},
},
})
[21:01:24] WARN [plugin inject] ../../node_modules/.pnpm/shiki@1.3.0/node_modules/shiki/dist/onig.wasm: rollup-plugin-inject: failed to parse /Users/abc/Projects/xxx/node_modules/.pnpm/shiki@1.3.0/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