Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error from vue-tsc --watch #2613

Closed
fi3ework opened this issue Apr 16, 2023 · 1 comment
Closed

Unexpected error from vue-tsc --watch #2613

fi3ework opened this issue Apr 16, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@fi3ework
Copy link

fi3ework commented Apr 16, 2023

reproduction:

https://stackblitz.com/edit/vitejs-vite-qwajvg?file=package.json

The reproduction is created with https://vite.new/vue-ts without any modification.

expected

  1. pnpm vue-tsc does not throw any error.
  2. pnpm vue-tsc --watch does not throw any error.

actually

  1. pnpm vue-tsc does not throw any error as expected.

  2. pnpm vue-tsc --watch does throw following error which is not expected.

    2:25:22 AM] Starting compilation in watch mode...
    
    src/App.vue:2:24 - error TS2307: Cannot find module './components/HelloWorld.vue' or its corresponding type declarations.
    
    2 import HelloWorld from './components/HelloWorld.vue'
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    src/main.ts:3:17 - error TS2307: Cannot find module './App.vue' or its corresponding type declarations.
    
    3 import App from './App.vue'
                      ~~~~~~~~~~~
    
    [2:25:23 AM] Found 2 errors. Watching for file changes.
    
@johnsoncodehk
Copy link
Member

Duplicate of #1799

@johnsoncodehk johnsoncodehk marked this as a duplicate of #1799 Apr 20, 2023
@johnsoncodehk johnsoncodehk closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2023
@johnsoncodehk johnsoncodehk added duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants