-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Vue style import will conflict with the base url config if base url is the prefix of project's full path #25
Open
7 tasks done
Labels
bug
Something isn't working
Comments
I use vite template create project pnpm create vite and add the config export default defineConfig({
base: '/home/',
plugins: [vue()]
}) I think it same with your repo. But I can't got a error. 😮 |
@poyoho Thanks for sharing. I try again with pnpm and |
wow..amazing |
DanSnow
changed the title
Vue style import will conflict with the base url config if base url is exist on the real filesystem
Vue style import will conflict with the base url config if base url is the prefix of project
Mar 8, 2022
DanSnow
changed the title
Vue style import will conflict with the base url config if base url is the prefix of project
Vue style import will conflict with the base url config if base url is the prefix of project's full path
Mar 8, 2022
9 tasks
9 tasks
This was referenced Apr 22, 2022
haoqunjiang
added
bug
Something isn't working
p3-minor-bug 🔨
An edge case that only affects very specific usage (priority)
and removed
pending triage
labels
Nov 16, 2022
edison1105
added
cannot reproduce
bug
Something isn't working
and removed
bug
Something isn't working
p3-minor-bug 🔨
An edge case that only affects very specific usage (priority)
cannot reproduce
labels
Sep 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Vue plugin will generate a full path to import style parts in SFC. If we set the base URL to
/home/
on Linux, it will fail to import.Reproduction
https://stackblitz.com/edit/vitejs-vite-7nlqrm?file=vite.config.js&terminal=dev
To reproduce this error, you need to meet these conditions, let's assume that your project is under
/home/user/project
:/home/
or/home/user/
.If you are on Mac, please try
/Users/
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: