-
Notifications
You must be signed in to change notification settings - Fork 92
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
[vite:dts] [@vue/compiler-sfc] Failed to resolve import source "./button". #208
Comments
Same here. Now with official 3.3 release. |
I have updated the reproduction project with the latest versions. |
any update? |
Maybe this can be fixed by updating |
Hello. |
I had the same problem (triggered only in Vue files) This error can currently be eliminated by alias, import type { ButtonProps } from './types'; //❌
import type { ButtonProps } from '@/components/button/types'; //✅ |
Thanks, that's currently a workaround :). |
Even with the suggested alias use from above I keep on hitting that error in
Getting:
|
Fixed in |
Describe the bug
I encountered an error in a Vue 3 SFC while importing an interface for Props using the new Vue version
3.3.0-beta.5
.This error only happens when I added the
dts
plugin in thevite.config.ts
file:Reproduction
https://github.com/antoniogiroz/vue-components-demo
Steps to reproduce
Clone the repo
git clone https://github.com/antoniogiroz/vue-components-demo
Install the dependencies:
npm install
orpnpm install
Build the project and check the results in the console:
npm run build
orpnpm build
System Info
Validations
The text was updated successfully, but these errors were encountered: