No loader is configured for ".ttf" files

I'm deploying a Sveltekit app to Cloudflare Pages but when using @sveltejs/adapter-cloudflare, I get this error:
> Using @sveltejs/adapter-cloudflare
✘ [ERROR] No loader is configured for ".ttf" files: node_modules/.pnpm/[email protected]/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf

node_modules/.pnpm/[email protected]/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css:9:6:
9 │ src: url(./codicon.ttf) format("truetype");
╵ ~~~~~~~~~~~~~~~~~~
> Using @sveltejs/adapter-cloudflare
✘ [ERROR] No loader is configured for ".ttf" files: node_modules/.pnpm/[email protected]/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf

node_modules/.pnpm/[email protected]/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css:9:6:
9 │ src: url(./codicon.ttf) format("truetype");
╵ ~~~~~~~~~~~~~~~~~~
How do I fix this?
3 Replies
Yuu
YuuOP12mo ago
This is a SvelteKit problem, not cloudflare. Please ignore
문대승
문대승8mo ago
did you solve this? I build sveltekit with monaco-editor, but uploading is failed because bundle size is over 25mb
Erisa
Erisa8mo ago
Please create a new topic for your issue rather than reviving one from months ago, you can reference this one in your new topic by copying a link to it (Right click -> Copy link)
Want results from more Discord servers?
Add your server