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 #25235

Closed
1 task done
NatanCoralogix opened this issue May 17, 2023 · 2 comments
Closed
1 task done

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

NatanCoralogix opened this issue May 17, 2023 · 2 comments

Comments

@NatanCoralogix
Copy link

NatanCoralogix commented May 17, 2023

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

15.2.0

Description

Trying to use esbuild, i get error:

[ERROR] No loader is configured for ".ttf" files: node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf

I used to have an extra-webpack.config.js file, which has some monaco editor style-loader.
not sure how/where to convert it to esbuild config?
{ test: /\.css$/, include: MONACO_DIR, use: ["style-loader", { "loader": "css-loader", "options": { "url": false, }, }], },

Minimal Reproduction

ng serve
see error

Exception or Error

[ERROR] No loader is configured for ".ttf" files: node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf

Your Environment

Angular CLI: 16.0.1
Node: 16.16.0
Package Manager: npm 8.11.0
OS: darwin arm64

Angular: 16.0.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1600.1
@angular-devkit/build-angular      16.0.1
@angular-devkit/core               16.0.1
@angular-devkit/schematics         16.0.1
@angular/flex-layout               14.0.0-beta.40
@angular/material                  15.2.9
@angular/material-moment-adapter   15.2.9
@schematics/angular                16.0.1
rxjs                               6.6.7
typescript                         4.9.5

Anything else relevant?

No response

@alan-agius4
Copy link
Collaborator

Monaco Editor is relies on Webpack specific features.
See: microsoft/monaco-editor#886

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants