ʏᴜᴢᴢᴜᴡᴏ
ʏᴜᴢᴢᴜᴡᴏ
NNuxt
Created by ʏᴜᴢᴢᴜᴡᴏ on 7/15/2024 in #❓・help
shiki highlight problem
I also get this error when trying to run the (successfully) built nuxt app
3 replies
NNuxt
Created by ʏᴜᴢᴢᴜᴡᴏ on 7/15/2024 in #❓・help
shiki highlight problem
[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)
3 replies
NNuxt
Created by ʏᴜᴢᴢᴜᴡᴜᴀ on 6/3/2024 in #❓・help
Virtual Scroll Nuxt UI Table
bump
4 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
yes, then it runs again on client, but he is logged in, so vue has to render it different. then there is mismatch
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
just for example
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
for example dark/light mode is based on user, server doesnt know it, so there will be hydration issue. That is why you should put dark/light toggle switch in ClientOnly
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
with ClientOnly, it only runs on client
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
With SSR, your code runs both on server and client
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
I dont think so
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
No description
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
with route rule you can make the whole page ssr: false
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
you can define routeRules in nuxt config,
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
Try wrap it in <ClientOnly> component
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
I have seperate backend that is why i use it
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
const config = useRuntimeConfig()

//...

const { data: years, pending } = await useLazyFetch<APIResponseArray<Year>>("/years/import", {
baseURL: config.public.baseURL,
pick: ["data"],
})
const config = useRuntimeConfig()

//...

const { data: years, pending } = await useLazyFetch<APIResponseArray<Year>>("/years/import", {
baseURL: config.public.baseURL,
pick: ["data"],
})
from my own code nuxt config:
runtimeConfig: {
public: {
baseURL: process.env.BACKEND_API,
},
},
runtimeConfig: {
public: {
baseURL: process.env.BACKEND_API,
},
},
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
what is the exact hydration problem?
33 replies
NNuxt
Created by Yann on 6/2/2024 in #❓・help
Beginner question - Hydration problem on computed property
useFetch provides baseURL etc
33 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Nuxt Layout with named slot
what if you move the template outside the div?
14 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Nuxt Layout with named slot
does it actually not work or is just IDE complaining?
14 replies