Closed antfu closed 3 years ago
You need to use nuxi
command to trigger generation of tsconfig.json
, which also means it won't be generated with nuxt generate
. Could you try nuxi dev
and see if it is created?
Ah, yes nuxi dev
works.
nuxt
is documented everywhere for both Nuxt 3 and Bridge, should we make nuxt
just work or we need to update the docs to advocate nuxi dev
?nuxi generate
does not support Nuxt 2 and error out saying to use nuxt generate
What about changing nuxi generate
error to exec(nuxt, ...args)
by checking the current nuxt version?
I would suggest changing nuxt
-> nuxi
everywhere in docs and starter templates, and completely agree with @pi0 suggestion 👍
In addition to nuxt/framework#1577 i guess we have to call writeTypes on nuxt instance and close it before exec 🙈
Environment
Darwin
v16.11.1
2.16.0-27254893.4bf7c35b
unknown
Webpack
buildModules
,css
,target
,components
,bridge
,vite
-
Build Modules:
nuxt-windicss@2.0.9
,@vueuse/core/nuxt@6.7.4
,@nuxt/bridge@3.0.0-27255596.0c1860a
Describe the bug
.nuxt/tsconfig.json
not generated onnuxt
andnuxt generate
Reproduction
https://github.com/antfu/vitesse-nuxt
Additional context
If I run
npx nuxi prepare
the following error is thrownMeanwhile, if I comment out
target: 'static'
it works fine andtsconfig.json
got generatedLogs
No response