Rechau
Rechau
NNuxt
Created by Rechau on 2/10/2025 in #❓・help
Unresolvable type reference or unsupported built-in utility type
My types in components are not recognized. When I use any type that is declared in ./types/*.d.ts in a component directory .vue file it just shows my an error "Unresolvable type reference or unsupported built-in utility type", but it works when I use same types in composables directory. Any idea why and/or how to fix it? ./types/user.d.ts
type User = {
id: number
name: string
}
type User = {
id: number
name: string
}
./nuxt.config.ts (only typescript part)
export default defineNuxtConfig({
typescript: {
typeCheck: true,
tsConfig: {
include: [
'./types/**/*.d.ts',
]
}
}
})
export default defineNuxtConfig({
typescript: {
typeCheck: true,
tsConfig: {
include: [
'./types/**/*.d.ts',
]
}
}
})
User type in vue file throws an error "Unresolvable type reference or unsupported built-in utility type"
6 replies
NNuxt
Created by Rechau on 12/3/2024 in #❓・help
Cannot start nuxt: Cannot convert undefined or null to object
I have started a new project and fallowed instructions of getting started installation page. Only commands I executed to install and start nuxt in dev mode: npx nuxi@latest init my-project npm run dev (in my-project directory) I am getting this error: Cannot start nuxt: Cannot convert undefined or null to object = at Function.values (<anonymous>) at configureServer (node_modules/vite-plugin-inspect/dist/index.mjs:1410:12) at configureServer (node_modules/vite-plugin-inspect/dist/index.mjs:1496:19) at _createServer (node_modules/@nuxt/vite-builder/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:63080:26) at async buildClient (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.B69gK6ir.mjs:733:24) at async withLogs (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.B69gK6ir.mjs:1781:3) at async bundle (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.B69gK6ir.mjs:1772:3) at async bundle (node_modules/nuxt/dist/index.mjs:6091:5) at async build (node_modules/nuxt/dist/index.mjs:5966:3) at async Promise.all (index 1) If I run preview, it works. This issue is only in dev mode. Any ideas why or how to fix it?
8 replies