shiki highlight problem
[21:01:59] ERROR [nuxt] [request error] [unhandled] [500] Unknown file extension ".wasm" for C:\Programming\Typescript\dinokupinic\node_modules\.pnpm\[email protected]\node_modules\shiki\dist\onig.wasm
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:143:22)
at async ModuleLoader.load (node:internal/modules/esm/loader:409:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:45)
at async link (node:internal/modules/esm/module_job:76:21)`
[21:01:59] ERROR [nuxt] [request error] [unhandled] [500] Unknown file extension ".wasm" for C:\Programming\Typescript\dinokupinic\node_modules\.pnpm\[email protected]\node_modules\shiki\dist\onig.wasm
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:143:22)
at async ModuleLoader.load (node:internal/modules/esm/loader:409:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:45)
at async link (node:internal/modules/esm/module_job:76:21)`
modules: [
"@nuxtjs/tailwindcss",
"@nuxtjs/color-mode",
"@nuxtjs/i18n",
"@nuxtjs/seo",
"@nuxtjs/device",
"@nuxt/content",
"@nuxt/image",
"@nuxt/eslint",
"@nuxt/fonts",
"@nuxt/scripts",
"@vueuse/nuxt",
"nuxt-icon",
"nuxt-viewport",
"shadcn-nuxt",
],
content: {
highlight: {
theme: {
default: "github-light",
dark: "github-dark",
},
},
markdown: {
anchorLinks: {
depth: 3,
exclude: [1],
},
},
},
modules: [
"@nuxtjs/tailwindcss",
"@nuxtjs/color-mode",
"@nuxtjs/i18n",
"@nuxtjs/seo",
"@nuxtjs/device",
"@nuxt/content",
"@nuxt/image",
"@nuxt/eslint",
"@nuxt/fonts",
"@nuxt/scripts",
"@vueuse/nuxt",
"nuxt-icon",
"nuxt-viewport",
"shadcn-nuxt",
],
content: {
highlight: {
theme: {
default: "github-light",
dark: "github-dark",
},
},
markdown: {
anchorLinks: {
depth: 3,
exclude: [1],
},
},
},
"@nuxt/content": "^2.13.1",
(rolling back didnt do anything either)1 Reply
[ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Programming\Typescript\dinokupinic\.output\server\node_modules\shiki\dist\core.mjs' imported from C:\Programming\Typescript\dinokupinic\.output\server\index.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Programming/Typescript/dinokupinic/.output/server/node_modules/shiki/dist/core.mjs'
}
Node.js v20.11.1
ERROR Command failed with exit code 1: node ./server/index.mjs 21:13:14
at makeError (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/index3.mjs:1272:11)
at handlePromise (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/index3.mjs:2510:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.run (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/preview.mjs:124:5)
at async runCommand$1 (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
at async runCommand$1 (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
at async runMain$1 (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
[ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Programming\Typescript\dinokupinic\.output\server\node_modules\shiki\dist\core.mjs' imported from C:\Programming\Typescript\dinokupinic\.output\server\index.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Programming/Typescript/dinokupinic/.output/server/node_modules/shiki/dist/core.mjs'
}
Node.js v20.11.1
ERROR Command failed with exit code 1: node ./server/index.mjs 21:13:14
at makeError (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/index3.mjs:1272:11)
at handlePromise (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/index3.mjs:2510:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.run (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/preview.mjs:124:5)
at async runCommand$1 (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
at async runCommand$1 (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
at async runMain$1 (/C:/Programming/Typescript/dinokupinic/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)