LeftHandRyan
CDCloudflare Developers
•Created by LeftHandRyan on 6/26/2024 in #pages-help
Debugging "Internal Error" in my Pages app
Hey folks, I've been working on a Pages app for a while, and after some updates to my code I'm getting a blank page that just says "internal error" when I run
wrangler pages dev
. The console log shows only "500 Internal Server Error". Turning up the log level to debug hasn't yielded any actual information about the error such as a stack trace, only internal logging messages. Does anyone know how I can debug this further?3 replies
CDCloudflare Developers
•Created by LeftHandRyan on 3/22/2024 in #pages-help
Pages Bundler configuration
I'm trying to serve some static files from Remix-based pages app. Specifically a SVG file. When building my page with ~~~~
✘ [ERROR] Build failed with 1 error:
…/app/components/ui/icon.tsx:4:17: ERROR: No loader is configured for “.svg” files:
…/app/components/ui/icons/sprite.svg
This is esbuild complaining as it's trying to bundle my remix build output (which is mostly javascript, but also a few images and one svg).
Is there something I can do to allow this type of file in my project? I just need to exclude this file from bundling, I think, but there doesn't seem to be a way to do that for Pages builds. Any suggestions??
wrangler pages dev
, I encounter a build error:
✘ [ERROR] 1 error(s) and 0 warning(s) when compiling Worker.
✘ [ERROR] No loader is configured for “.svg” files: …/app/components/ui/icons/sprite.svg
../app/components/ui/icon.tsx:4:17:
4 │ import href from './icons/sprite.svg'
╵ 1 replies
CDCloudflare Developers
•Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
166 replies
CDCloudflare Developers
•Created by LeftHandRyan on 3/16/2024 in #pages-help
Error building worker: No loader is configured for “.svg” files
Hey folks, I’ve got a Pages Remix app which uses svg icons. It’s built with vite, and works fine in local development with remix vite:dev, but running locally with wrangler page dev and deploying with
wrangler pages deploy
produces an error about the .svg files in my code:
✘ [ERROR] 1 error(s) and 0 warning(s) when compiling Worker.
✘ [ERROR] No loader is configured for “.svg” files: …/app/components/ui/icons/sprite.svg
../app/components/ui/icon.tsx:4:17:
4 │ import href from './icons/sprite.svg'
╵ ~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Build failed with 1 error:
…/app/components/ui/icon.tsx:4:17: ERROR: No loader is configured for “.svg” files:
…/app/components/ui/icons/sprite.svg
Is there something special I need to do to allow this type of file in my project?24 replies