TypeScript errors with `vue-tsc --noEmit`
See original GitHub issueReproduction
On demand
Steps to reproduce the behavior
- Create a Vue2 project
- Setup a store / use
pinia
- Run
yarn vue-tsc --noEmit
Expected behavior
No compile time TS errors
Actual behavior
$ yarn vue-tsc --noEmit
node_modules/pinia/dist/pinia.d.ts:3:10 - error TS2305: Module '"vue-demi"' has no exported member 'DebuggerEvent'.
3 import { DebuggerEvent } from 'vue-demi';
~~~~~~~~~~~~~
node_modules/pinia/dist/pinia.d.ts:5:10 - error TS2305: Module '"vue-demi"' has no exported member 'Plugin'.
5 import { Plugin as Plugin_2 } from 'vue-demi';
~~~~~~
node_modules/pinia/dist/pinia.d.ts:516:42 - error TS2315: Type 'App' is not generic.
516 export declare const PiniaPlugin: ((app: App<any>, ...options: any[]) => any) & {
~~~~~~~~
node_modules/pinia/dist/pinia.d.ts:517:22 - error TS2315: Type 'App' is not generic.
517 install?: ((app: App<any>, ...options: any[]) => any) | undefined;
~~~~~~~~
Found 4 errors.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Errors building with vue-tsc --noEmit · Issue #318 - GitHub
I'm running into typescript errors on every single component when trying to build a project with vite and vue-tsc (using Vue3 and TypeScript):....
Read more >Vue 3 + Vite + Typescript - dev & build not picking up TS Errors
It assumes type checking is taken care of by your IDE and build process (you can run tsc --noEmit in the build script...
Read more >Documentation - tsc CLI Options - TypeScript
Flag Type Default
‑‑allowJs boolean false
‑‑allowUmdGlobalAccess boolean false
‑‑allowUnreachableCode boolean
Read more >vue-tsc - npm
[x] Type-Checking with --noEmit; [x] Use released LSP module; [x] Make typescript as peerDependencies; [x] Cleaner dependencies (remove prettyhtml ...
Read more >[Solved]-VSCode shows different error than Vue CLI build-Vue.js
In Vue 3 and the Volar language server (or VSCode extension) there are two versions of the TypeScript compiler: tsc - the standard...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Patch for
2.0.1
Maybe I could look into that later if I have some time, but not sure. For now I use the local patch, cause in the long run we switch to pinia cause we want to migrate to Vue 3 anyways someday
Adapting this requires a few changes: