Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behaviour of nuxt typecheck and '@nuxt/kit' in tsconfig.json compilerOptions.paths '#build/*' alias #413

Open
simkuns opened this issue May 17, 2024 · 0 comments

Comments

@simkuns
Copy link

simkuns commented May 17, 2024

When running nuxt typecheck in a project without .nuxt directory @nuxt/kit creates an alias for #build, but does not create an alias for #build/* in tsConfig.compilerOptions.paths which causes typecheck to fail.

Creating empty .nuxt directory or swapping lines

await writeTypes(nuxt)
and
await buildNuxt(nuxt)
similarly to nuxt prepare command allows @nuxt/kit to add #build/* alias in tsconfig.json which causes typecheck to succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant