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

Failed to resolve the relative background image url in css when there're special characters in it's parent paths. #512

Closed
8 of 9 tasks
ankeycheng opened this issue Jan 20, 2025 · 1 comment

Comments

@ankeycheng
Copy link

Related plugins

Describe the bug

It seems to fail to resolve the relative background image url in css when a component is located in a folder containing special characters (e.g. brackets).

Reproduction

https://codesandbox.io/p/devbox/cool-lake-27tnhv?file=%2Fsrc%2F%28magic-path%29%2FFoo.vue%3A1%2C11

Steps to reproduce

Run pnpm run dev

System Info

System:
  OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
  CPU: (2) x64 AMD EPYC
  Memory: 1.26 GB / 3.63 GB
  Container: Yes
  Shell: Unknown
Binaries:
  Node: 20.12.0 - /usr/local/bin/node
  npm: 10.5.0 - /usr/local/bin/npm
  pnpm: 8.15.6 - /usr/local/share/npm-global/bin/pnpm
npmPackages:
  @vitejs/plugin-vue: ^5.2.1 => 5.2.1 
  vite: ^6.0.8 => 6.0.8

Used Package Manager

pnpm

Logs

No response

Validations

@ankeycheng ankeycheng changed the title Failed to resolve the relative background image in css when there are special characters in it's parent paths. Failed to resolve the relative background image url in css when there're special characters in it's parent paths. Jan 20, 2025
@danielroe danielroe marked this as a duplicate of nuxt/nuxt#30625 Jan 20, 2025
@sapphi-red
Copy link
Member

It seems this is a bug in Vite core. I made an issue there: vitejs/vite#19261

@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants