Open DanSnow opened 2 years ago
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 create-vite
and still can reproduce this error. I have updated the description with more details, could you please try again?
wow..amazing
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