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

Image with whitespace won't load from 'public' folder #2195

Closed
2 of 3 tasks
AgileInteractive opened this issue Feb 23, 2021 · 0 comments · Fixed by #2201
Closed
2 of 3 tasks

Image with whitespace won't load from 'public' folder #2195

AgileInteractive opened this issue Feb 23, 2021 · 0 comments · Fixed by #2201

Comments

@AgileInteractive
Copy link

AgileInteractive commented Feb 23, 2021

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • Read the docs.
  • Use Vite >=2.0. (1.x is no longer supported)
  • If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.

Describe the bug

When trying to load an image with whitespace (or other assets) from the 'public' folder, it can't be found.

Reproduction

  • Fresh install of vite, choosing vue
  • Copy image with whitespace in file name to public folder
  • Try to show it with an img element

System Info

  • vite version: 2.0.2
  • Operating System: Windows
  • Node version: 15.9.0
  • Package manager (npm/yarn/pnpm) and version: npm 7.5.4
@AgileInteractive AgileInteractive changed the title Image with whitespace won't load from 'public Image with whitespace won't load from 'public' folder Feb 23, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant