From e6d6f75cd15c28236b6c092d6e215b42ba77ea84 Mon Sep 17 00:00:00 2001 From: Brendan Mulholland Date: Mon, 18 Jul 2022 15:20:11 +0200 Subject: [PATCH 1/2] Bridge: Instructions to prepare tsconfig for tests --- docs/content/bridge/1.overview.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/content/bridge/1.overview.md b/docs/content/bridge/1.overview.md index 160021ffb29..91764ab38fd 100644 --- a/docs/content/bridge/1.overview.md +++ b/docs/content/bridge/1.overview.md @@ -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). :: From 6ef8b4782bda75a463ade7b705cbbdc972fd4644 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 19 Jul 2022 12:34:48 +0100 Subject: [PATCH 2/2] docs: tweak --- docs/content/bridge/1.overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/bridge/1.overview.md b/docs/content/bridge/1.overview.md index 91764ab38fd..d95fe0b7853 100644 --- a/docs/content/bridge/1.overview.md +++ b/docs/content/bridge/1.overview.md @@ -137,7 +137,7 @@ 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'` +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).