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
Error: 404 /_app/immutable/assets/svelte-logo-87df40b8.svg does not begin with `base`, which is configured in `paths.base` and can be imported from `$app/paths` (linked from /foo/about)
at eval (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:65:11)
at visit (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:231:4)
at Object.eval [as fn] (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:221:22)
at dequeue (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/queue.js:53:42)
at eval (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/queue.js:62:7)
~/projects/sveltejs-kit-template-default-sdspxa 9s
❯ npm run build
$ vite build
vite v3.1.0 building for production...
✓ 52 modules transformed.
vite v3.1.0 building SSR bundle for production...
✓ 65 modules transformed.
.svelte-kit/output/server/vite-manifest.json 3.07 KiB
.svelte-kit/output/server/index.js 65.91 KiB
.svelte-kit/output/server/entries/pages/_layout.svelte.js 4.06 KiB
.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.60 KiB
.svelte-kit/output/server/entries/pages/_page.svelte.js 7.10 KiB
.svelte-kit/output/server/entries/pages/_page.js 0.05 KiB
.svelte-kit/output/server/entries/pages/about/_page.svelte.js 1.25 KiB
.svelte-kit/output/server/entries/pages/about/_page.js 0.09 KiB
.svelte-kit/output/server/entries/pages/todos/_page.svelte.js 5.93 KiB
.svelte-kit/output/server/entries/pages/todos/_page.server.js 1.35 KiB
.svelte-kit/output/server/chunks/index.js 4.15 KiB
.svelte-kit/output/server/chunks/index2.js 0.97 KiB
.svelte-kit/output/server/chunks/index3.js 1.29 KiB
.svelte-kit/output/server/chunks/stores.js 1.00 KiB
.svelte-kit/output/server/chunks/hooks.server.js 0.28 KiB
Error: 404 /_app/immutable/assets/svelte-logo-87df40b8.svg does not begin with `base`, which is configured in`paths.base` and can be imported from `$app/paths` (linked from /foo/about)
at eval (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:65:11)
at visit (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:231:4)
at Object.eval [as fn] (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:221:22)
at dequeue (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/queue.js:53:42)
at eval (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/core/prerender/queue.js:62:7)
[vite-plugin-svelte-kit] Prerendering failed with code 1
error during build:
Error: Prerendering failed with code 1
at ChildProcess.eval (file:///home/projects/sveltejs-kit-template-default-sdspxa/node_modules/@sveltejs/kit/src/exports/vite/index.js:454:15)
at EventEmitter.emit (https://sveltejs-kit-template-default-sdspxa.w.staticblitz.com/blitz.a493d9b6541a4dd5b019a965004167e4adff5f2b.js:6:155574)
at ChildProcess._handle.onexit (https://sveltejs-kit-template-default-sdspxa.w.staticblitz.com/blitz.a493d9b6541a4dd5b019a965004167e4adff5f2b.js:6:956236)
at https://sveltejs-kit-template-default-sdspxa.w.staticblitz.com/blitz.a493d9b6541a4dd5b019a965004167e4adff5f2b.js:15:382032
at _0x15340f (https://sveltejs-kit-template-default-sdspxa.w.staticblitz.com/blitz.a493d9b6541a4dd5b019a965004167e4adff5f2b.js:15:144844)
at https://sveltejs-kit-template-default-sdspxa.w.staticblitz.com/blitz.a493d9b6541a4dd5b019a965004167e4adff5f2b.js:15:144593
Describe the bug
If I set
paths.base
, import.png
or.svg
, set it tosrc
of<img>
tag, and build using@sveltejs/adapter-static
, I will get a 404 error.Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-sdspxa?file=src/lib/header/Header.svelte
npm run build
Logs
System Info
Severity
annoyance
Additional Information
This issue seems to be from 1.0.0-next.475.
Perhaps the #6621 PR change introduced a bug.
I think we probably need to fix
packages/kit/src/exports/vite/build/utils.js
.Before:
kit/packages/kit/src/exports/vite/build/utils.js
Lines 149 to 151 in 616ec7a
After:
The text was updated successfully, but these errors were encountered: