pi0 / nuxt-shiki

🎨 Nuxt + Shiki syntax highlighter
79 stars 2 forks source link

Get error when building nuxt at nuxt-shiki `0.3.0`, missing correct shiki output file #33

Open David-Tsui opened 7 months ago

David-Tsui commented 7 months ago

Version

0.3.0 (No such issue at 0.1.x)

Description

Not sure this issue should be posted here or Shiki itself.

After upgrading to 0.3.0, I got an error when building nuxt.

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/user/Desktop/my-repo/.output/server/node_modules/shiki/dist/wasm.mjs' imported from /Users/user/Desktop/my-repo/.output/server/chunks/build/server.mjs

And yep it did not exist in nuxt output node_modules,

image

however it did exist at 0.1.x

image
KazariEX commented 7 months ago

Its normal that wasm.mjs does not exist in the output at 0.3.0. Would you provide a minimal reproduction?

David-Tsui commented 7 months ago

@KazariEX

Well I tried but no luck, the error above only happened on one of my repos. It may take some time to be reproduced. However, this is another warning/error I got(so weird), but I'll focus on the first one at this moment.

image.