From ca639df7df2ae308e64d6583468a789e368e46d2 Mon Sep 17 00:00:00 2001 From: Xander Marjoram Date: Tue, 1 Oct 2024 14:45:18 +0100 Subject: [PATCH] Fix ts error in vue example app --- apps/examples/wc-vue3/tsconfig.json | 6 +++- yarn.lock | 56 +++++++++++++++++++++++++++-- 2 files changed, 59 insertions(+), 3 deletions(-) diff --git a/apps/examples/wc-vue3/tsconfig.json b/apps/examples/wc-vue3/tsconfig.json index 67fd783b1e..ac92bf4b9a 100644 --- a/apps/examples/wc-vue3/tsconfig.json +++ b/apps/examples/wc-vue3/tsconfig.json @@ -4,7 +4,11 @@ "compilerOptions": { "allowJs": true, // allow JavaScript files to be imported "baseUrl": ".", - "ignoreDeprecations": "5.0", + // workaround for https://github.com/vuejs/tsconfig/issues/6 + "preserveValueImports": false, + "importsNotUsedAsValues": "remove", + "verbatimModuleSyntax": true, + // end workaround "paths": { "@/*": ["./src/*"] } diff --git a/yarn.lock b/yarn.lock index 68a9166f85..f7b126b721 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1179,6 +1179,17 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.25.3": + version: 7.25.6 + resolution: "@babel/parser@npm:7.25.6" + dependencies: + "@babel/types": ^7.25.6 + bin: + parser: ./bin/babel-parser.js + checksum: 85b237ded09ee43cc984493c35f3b1ff8a83e8dbbb8026b8132e692db6567acc5a1659ec928e4baa25499ddd840d7dae9dee3062be7108fe23ec5f94a8066b1e + languageName: node + linkType: hard + "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.24.5, @babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.24.7": version: 7.24.7 resolution: "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:7.24.7" @@ -2931,6 +2942,17 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.25.6": + version: 7.25.6 + resolution: "@babel/types@npm:7.25.6" + dependencies: + "@babel/helper-string-parser": ^7.24.8 + "@babel/helper-validator-identifier": ^7.24.7 + to-fast-properties: ^2.0.0 + checksum: 9b2f84ff3f874ad05b0b9bf06862c56f478b65781801f82296b4cc01bee39e79c20a7c0a06959fed0ee582c8267e1cb21638318655c5e070b0287242a844d1c9 + languageName: node + linkType: hard + "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -10198,6 +10220,19 @@ __metadata: languageName: node linkType: hard +"@vue/compiler-core@npm:3.5.10": + version: 3.5.10 + resolution: "@vue/compiler-core@npm:3.5.10" + dependencies: + "@babel/parser": ^7.25.3 + "@vue/shared": 3.5.10 + entities: ^4.5.0 + estree-walker: ^2.0.2 + source-map-js: ^1.2.0 + checksum: 7c13ccff151818d757c5985e286f596ff2daf0a6b03ecc9f67035cdcd91b463563da8a4e6190db3367d73fcaa07804060beb4f51ed532ad5f1f602b47d29783f + languageName: node + linkType: hard + "@vue/compiler-dom@npm:3.2.47": version: 3.2.47 resolution: "@vue/compiler-dom@npm:3.2.47" @@ -10208,7 +10243,7 @@ __metadata: languageName: node linkType: hard -"@vue/compiler-dom@npm:3.4.33, @vue/compiler-dom@npm:^3.4.0": +"@vue/compiler-dom@npm:3.4.33": version: 3.4.33 resolution: "@vue/compiler-dom@npm:3.4.33" dependencies: @@ -10218,6 +10253,16 @@ __metadata: languageName: node linkType: hard +"@vue/compiler-dom@npm:^3.4.0": + version: 3.5.10 + resolution: "@vue/compiler-dom@npm:3.5.10" + dependencies: + "@vue/compiler-core": 3.5.10 + "@vue/shared": 3.5.10 + checksum: 63354721022c948573303556c031365be6e2957bbc222d643be500129a1799e00a37ac3dc2b4b653c78e8c64a165367e13ca6e187f6cf7a69ce9c6fc73fd762d + languageName: node + linkType: hard + "@vue/compiler-sfc@npm:2.7.14": version: 2.7.14 resolution: "@vue/compiler-sfc@npm:2.7.14" @@ -10451,13 +10496,20 @@ __metadata: languageName: node linkType: hard -"@vue/shared@npm:3.4.33, @vue/shared@npm:^3.2.47, @vue/shared@npm:^3.4.0": +"@vue/shared@npm:3.4.33, @vue/shared@npm:^3.2.47": version: 3.4.33 resolution: "@vue/shared@npm:3.4.33" checksum: f2e99629b3f03165cf749e3beae1b4c73b5400f81500159af69977107e9454c15648c3b68ccd4542229c0c497c52d45925518cd1390fa1f8adcf861e7aca2061 languageName: node linkType: hard +"@vue/shared@npm:3.5.10, @vue/shared@npm:^3.4.0": + version: 3.5.10 + resolution: "@vue/shared@npm:3.5.10" + checksum: 87d2fa140f80c1a4fc657b9b37b1db41ef89e8037c76b04c8ad0115fecc56d10e9694247d07b6a2f669d6af92c2377f722ac0380c9c9675410091d7b7839e701 + languageName: node + linkType: hard + "@vue/test-utils@npm:1.1.3": version: 1.1.3 resolution: "@vue/test-utils@npm:1.1.3"