Image could not load #819
-
do you need to do any special configuration for the images? import NotFoundImage from '@/src/images/404-illustration.svg' [vite:asset] Could not load /src/src/images/404-illustration.svg (imported by pages/_error/+Page.tsx): ENOENT: no such file or directory, open '/src/src/images/404-illustration.svg' resolve: {
alias: {
'@': path.resolve(__dirname, '/src')
}
}, "compilerOptions": {
"strict": true,
"module": "ES2020",
"target": "ES2020",
"moduleResolution": "Node",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"types": ["vite/client"],
"jsx": "react-jsx",
"skipLibCheck": true,
"esModuleInterop": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I believe it's more of a Vite question than a vite-plugin-ssr one. But let me know if you believe there is something specific about VPS. |
Beta Was this translation helpful? Give feedback.
-
false alarm I got the path wrong, I shouldn't have added src thx |
Beta Was this translation helpful? Give feedback.
false alarm
I got the path wrong, I shouldn't have added src
thx