mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
docs: update bridge migration with info about generating .nuxt/tsconfig.json
for tests (#5967)
This commit is contained in:
parent
d6e75bbd09
commit
eff6b0c4ca
@ -136,6 +136,9 @@ If you are using TypeScript, you can edit your `tsconfig.json` to benefit from a
|
||||
}
|
||||
```
|
||||
|
||||
::alert
|
||||
As `.nuxt/tsconfig.json` is generated and not checked into version control, you'll need to generate that file before running your tests. Add `nuxi prepare` as a step before your tests, otherwise you'll see `TS5083: Cannot read file '~/.nuxt/tsconfig.json'`
|
||||
::
|
||||
::alert
|
||||
You may also need to add `@vue/runtime-dom` as a devDependency if you are struggling to get template type inference working with [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar).
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user