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
Failed to load file in another monorepo with alias. #13404
Labels
invalid
This doesn't seem right
Comments
sapphi-red
added
p3-minor-bug
An edge case that only affects very specific usage (priority)
regression
The issue only appears after a new release
labels
Jun 2, 2023
+1 |
@zhangchao828 please use a 👍🏼 emoji reaction on the comment instead of "+1" messages to avoid unneeded notifications. Thanks! |
4 tasks
for now I'm using https://www.npmjs.com/package/vite-tsconfig-paths?activeTab=readme to fix the issue |
sapphi-red
added
invalid
This doesn't seem right
and removed
regression
The issue only appears after a new release
p3-minor-bug
An edge case that only affects very specific usage (priority)
labels
Nov 7, 2023
As described in #13409, this is working as intended. You need to pass absolute paths to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I am using two sub packages by pnpm called core and web.
The core package uses the tsconfig path to refer to the files in the package
In the web package, I use pnpm to install the core package.
In order for vite to recognize the path @core, I set an alias in vite config
It works fine in vite 4.2.x, but broken in 4.3.x, failed to load file in core package
Reproduction
https://github.com/vspirit803/vite-test
Steps to reproduce
pnpm i
cd packages/web
pnpm run dev
System Info
Used Package Manager
pnpm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: