You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple logo.png that I use on the main page and in +layout.svelte. Image is as advised in static directory.
When I do an npm run build with no basePath in the evidence.config.yaml, everything works. But when I add the deployment path (I'm running several evidence projects on the same webserver, so I need this), build bombs out with:
evidence build
node:internal/event_target:1090
process.nextTick(() => { throw err; });
^
Error: 404 /logo2.png does not begin with `base`, which is configured in `paths.base` and can be imported from `$app/paths` - see https://svelte.dev/docs/kit/configuration#paths for more info (linked from /reports/Barometer/)
To suppress or handle this error, implement `handleHttpError` in https://svelte.dev/docs/kit/configuration#prerender
at file:///opt/evidence/bar_new/barometer-evidence/node_modules/@sveltejs/kit/src/core/config/options.js:203:13
at file:///opt/evidence/bar_new/barometer-evidence/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:71:25
at visit (file:///opt/evidence/bar_new/barometer-evidence/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:201:4)
at Object.fn (file:///opt/evidence/bar_new/barometer-evidence/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:190:22)
at dequeue (file:///opt/evidence/bar_new/barometer-evidence/node_modules/@sveltejs/kit/src/core/postbuild/queue.js:40:42)
at file:///opt/evidence/bar_new/barometer-evidence/node_modules/@sveltejs/kit/src/core/postbuild/queue.js:49:7
Node.js v22.11.0
Build failed
I'm not used at all with Svelte, so I don't understand exactly what it wants me to do.
What am I doing wrong?
TIA
Steps to Reproduce
npm run build with an embedded image and add a basePath to the deployment.
Describe the bug
I have a simple
logo.png
that I use on the main page and in+layout.svelte
. Image is as advised instatic
directory.When I do an
npm run build
with nobasePath
in theevidence.config.yaml
, everything works. But when I add the deployment path (I'm running several evidence projects on the same webserver, so I need this), build bombs out with:I'm not used at all with Svelte, so I don't understand exactly what it wants me to do.
What am I doing wrong?
TIA
Steps to Reproduce
npm run build
with an embedded image and add a basePath to the deployment.Logs
System Info
Severity
serious, but I can work around it
Additional Information, or Workarounds
No response
The text was updated successfully, but these errors were encountered: