Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No loader is configured for ".ttf" files. #11220

Closed
XiSenao opened this issue Dec 7, 2023 · 0 comments · Fixed by #12439
Closed

No loader is configured for ".ttf" files. #11220

XiSenao opened this issue Dec 7, 2023 · 0 comments · Fixed by #12439

Comments

@XiSenao
Copy link

XiSenao commented Dec 7, 2023

Describe the bug

@sveltejs/kit/vite plugin encountered an error. The error occurred in the @sveltejs/adapter-cloudflare stage, which uses esbuild for bundling but is unable to bundle .ttf files. This issue is similar to the problem described in #9890.

Related issues:
vitejs/vite#15266

The error message is as follows:

No loader is configured for ".ttf" files: node_modules/.pnpm/monaco-editor@0.44.0/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-shtthr

Logs

No response

System Info

System:
    OS: macOS 14.1.2
    CPU: (8) arm64 Apple M1
    Memory: 82.47 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.12.0 - ~/.nvm/versions/node/v18.12.0/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.12.0/bin/npm
    pnpm: 8.11.0 - ~/.nvm/versions/node/v18.12.0/bin/pnpm
    bun: 1.0.14 - ~/.bun/bin/bun
  Browsers:
    Chrome: 120.0.6099.71
    Safari: 17.1.2
  npmPackages:
    @sveltejs/adapter-cloudflare: ^2.3.4 => 2.3.4 
    @sveltejs/kit: ^1.27.7 => 1.27.7 
    svelte: ^4.2.8 => 4.2.8 
    vite: ^5.0.6 => 5.0.6

Severity

annoyance

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants