最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Using monaco-editor in angular - Stack Overflow

programmeradmin4浏览0评论

In my angular (19) app, I installed monaco-editor:

npm install [email protected]

and used it in a component.

However, the component test spec will now fail with such an error:

./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.css:6:0 - Error: Module parse failed: Unexpected token (6:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.

and other ~90 like those...

My Angular project is configured to use .scss. Apparently, the Monaco editor wants .css

How can I fix the test?

Thanks

发布评论

评论列表(0)

  1. 暂无评论