docs: update bridge migration with info about generating `.nuxt/tsconfig.json` for tests (#5967)

This commit is contained in:
Brendan Mulholland 2022-07-19 13:35:27 +02:00 committed by GitHub
parent d6e75bbd09
commit eff6b0c4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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 ::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). 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).
:: ::