-
Notifications
You must be signed in to change notification settings - Fork 916
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
Can't import interface / type and use them with defineProps "failed to resolve import source" #2048
Comments
Currently this is causing me the same issues as well, I believe it's same issue as described as above, only experiencing it with jest however. Wrapping the interface with another interface seems to fix the issue, however that'll change the way you need to interact with the component by quite a bit.
Error received is the same mentioned above:
|
Hello ! I'm experiencing the same exact same issue than Y0me. |
Closes vuejs#8671 Closes vuejs/vue-loader#2048 `dirname` is the safest way to get a directory name from a path string. As for this specific bug, it's because `path.posix.join(AnyWindowsPath, '..')` returns `.`. I'm not sure whether there will be unexpected regression if I modify the `joinPaths` utility, so I changed the smallest possible bit of code to fix this.
Version
17.2.1
Reproduction link
https://github.com/Y0me/defineProps
Steps to reproduce
npm run dev
What is actually happening?
I'm trying to use the new import type feature in vue 3.3 to defineProps with imported type/interface.
Example
When I compile the project, I get the following errors :
If I wrap the interface, the build succeeds.
What is expected?
I guess a success webpack build.
Thanks !
The text was updated successfully, but these errors were encountered: