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

[Error: UNKNOWN: unknown error, open '...\vite-latest\dist\example.jpg'] #18

Open
jhbynf opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@jhbynf
Copy link

jhbynf commented Nov 26, 2024

I am getting an error on build time, using the latest version of vite without any additional libraries. I have a example.jpg stored in the public folder of my vite project.

`> vite-latest@0.0.0 build

vite build

vite v5.4.11 building for production...
✓ 4 modules transformed.
dist/index.html 0.50 kB │ gzip: 0.32 kB
dist/assets/index-DRNMkqs8.css 1.21 kB │ gzip: 0.62 kB
dist/assets/index-Hg5hV26S.js 0.71 kB │ gzip: 0.40 kB
✓ built in 156ms
[Error: UNKNOWN: unknown error, open 'C:\Users...\Documents\git\vite-latest\dist\example.jpg'] {
errno: -4094,
code: 'UNKNOWN',
syscall: 'open',
path: 'C:\Users\...\Documents\git\vite-latest\dist\example.jpg'
}`

I have tried storing images in src/assets instead of public but that did not help either. Am i missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant