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
Initially, I thought the issue was caused by setting csr=false, but upon further investigation, I've found that the problem lies elsewhere. Please disregard the code in the captured image.
When building the project, the asset paths referenced in the CSS are incorrect. However, everything works fine in development mode.
browser console output:
GET http://localhost:4173/PretendardVariable.CJuje-Rk.woff2 net::ERR_ABORTED 404 (Not Found)
The asset is hashed, but the file name is not being properly mapped to the actual path, which should be _app/immutable/assets/PretendardVariable.CJuje-Rk.woff2. Instead, only the original path is used, and the file name is hashed.
Error: Not found: /PretendardVariable.CJuje-Rk.woff2 at resolve2 (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3612:18) at resolve (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3445:34) at #options.hooks.handle (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3687:71) at respond (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3443:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {status: 404, text: "Not Found", stack: "Error: Not found: /PretendardVariable.CJuje-Rk.wof…jections (node:internal/process/task_queues:95:5)", message: "Not found: /PretendardVariable.CJuje-Rk.woff2"}
Describe the bug
Note
Initially, I thought the issue was caused by setting csr=false, but upon further investigation, I've found that the problem lies elsewhere. Please disregard the code in the captured image.
svlete.config.js
When building the project, the asset paths referenced in the CSS are incorrect. However, everything works fine in development mode.
browser console
output:The asset is hashed, but the file name is not being properly mapped to the actual path, which should be
_app/immutable/assets/PretendardVariable.CJuje-Rk.woff2
. Instead, only the original path is used, and the file name is hashed.Reproduction
https://github.com/XIYO/svelte-hole/tree/master/hole/csr-false
Logs
Error: Not found: /PretendardVariable.CJuje-Rk.woff2 at resolve2 (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3612:18) at resolve (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3445:34) at #options.hooks.handle (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3687:71) at respond (file:///E:/svelte-hole/hole/csr-false/.svelte-kit/output/server/index.js:3443:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {status: 404, text: "Not Found", stack: "Error: Not found: /PretendardVariable.CJuje-Rk.wof…jections (node:internal/process/task_queues:95:5)", message: "Not found: /PretendardVariable.CJuje-Rk.woff2"}
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: