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

Outer folder type/interface import in SFC fails on Windows (path.posix.join issue) #9583

Closed
b12k opened this issue Nov 10, 2023 · 0 comments
Closed

Comments

@b12k
Copy link
Contributor

b12k commented Nov 10, 2023

Vue version

3.3.8

Link to minimal reproduction

https://github.com/b12k/vue-sfc-compiler-issue

Steps to reproduce

Easy way:

Can be reproduced by simply extending unit test with additional condition.
https://github.com/vuejs/core/pull/9478/files#diff-ba884e3c055eca4af5d6c4a16daa31397a191ceabac0a4018a2b612b781360b5R484-R489

See with own eyes way:

What is expected?

It should be possible to import type definitions from outer folders.

What is actually happening?

[@vue/compiler-sfc] Failed to resolve import source "../outer-folder"

System Info

System:
  OS: Windows 11 Pro
Binaries:
  Node: 20.9.0 - ~\AppData\Local\fnm_multishells\70852_1699634305330\node.EXE
  Yarn: 1.22.19 - ~\AppData\Local\fnm_multishells\70852_1699634305330\yarn.CMD
npmPackages:
  vue: 3.3.8 => 3.3.8

Any additional comments?

This PR #9478 fixes this issue.

yyx990803 pushed a commit that referenced this issue Nov 13, 2023
@b12k b12k closed this as completed Nov 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant