You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that wasm loader does not load files from node_modules.
WARN [worker] Unknown file extension ".wasm" for ***/node_modules/shiki/dist/onigasm.wasm
at Loader.defaultGetFormat [as _getFormat] (internal/modules/esm/get_format.js:71:15)
at Loader.getFormat (internal/modules/esm/loader.js:102:42)
at Loader.getModuleJob (internal/modules/esm/loader.js:231:31)
at async ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:58:21)
at async Promise.all (index 9)
at async link (internal/modules/esm/module_job.js:63:9)
While when I copy the wasm file to server/api directory and use relative path it works as expected
importonigasmfrom'./onigasm.wasm'// worksimportonigasmfrom'shiki/dist/onigasm.wasm'// Don't work
Seems that wasm loader does not load files from node_modules.
While when I copy the wasm file to
server/api
directory and use relative path it works as expectedrelated to nuxt/framework#693
reproduction: https://github.com/farnabaz/nuxt-shiki
The text was updated successfully, but these errors were encountered: