You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug only reproduces on windows systems, due to incorrect path building using path.posix.join.
When function joinPath from 'compiler-sfc/utils' gets windows style path (like C:\\git\\vue3-boilerplate\\src\\components\\TestComponent\\TestComponent.vue), it's return wrong joined path like:
Vue version
3.3.4
Link to minimal reproduction
https://github.com/YourDeadEnd/vue3-boilerplate/tree/test-vue3.3-import
Steps to reproduce
What is expected?
Project started without errors.
What is actually happening?
Failed to resolve import source "./types".
System Info
Any additional comments?
This bug only reproduces on windows systems, due to incorrect path building using
path.posix.join
.When function
joinPath
from 'compiler-sfc/utils' gets windows style path (likeC:\\git\\vue3-boilerplate\\src\\components\\TestComponent\\TestComponent.vue
), it's return wrong joined path like:To get the right path on windows we need to normalize win path:
and then the error is gone.
The text was updated successfully, but these errors were encountered: