atularen / ngx-monaco-editor

Monaco Editor component for Angular 2 and Above
https://www.npmjs.com/package/ngx-monaco-editor
MIT License
428 stars 155 forks source link

The editor will report errors when language is CSS #127

Open MengQingYan1998 opened 4 years ago

MengQingYan1998 commented 4 years ago

cssMode.js:7 TypeError: Cannot read property 'getModeId' of null at cssMode.js:7 at Object.g [as _notify] (editor.main.js:4700) at Object.enter (editor.main.js:4908) at n.Class.derive._creator._run (editor.main.js:5009) at n.Class.derive._creator._completed (editor.main.js:4985) at Object.g [as _notify] (editor.main.js:4700) at Object.enter (editor.main.js:4908) at n.Class.derive._oncancel._run (editor.main.js:5009) at n.Class.derive._oncancel._completed (editor.main.js:4985) at Object.g [as _notify] (editor.main.js:4700) at Object.enter (editor.main.js:4908) at n.Class.derive._oncancel._run (editor.main.js:5009) at n.Class.derive._oncancel._completed (editor.main.js:4985) at e._handleMessage (editor.main.js:8875) at e.handleMessage (editor.main.js:8864) at editor.main.js:8906 at Worker.worker.onmessage [as __zone_symbol__ON_PROPERTYmessage] (editor.main.js:9885) at Worker.wrapFn (zone.js:1188) at ZoneDelegate.invokeTask (zone.js:421) at Zone.runTask (zone.js:188) at ZoneTask.invokeTask [as invoke] (zone.js:496) at invokeTask (zone.js:1540) at Worker.globalZoneAwareCallback (zone.js:1566) (anonymous) @ cssMode.js:7 done @ editor.main.js:5035 m @ editor.main.js:4734 enter @ editor.main.js:4908 _run @ editor.main.js:5009 _completed @ editor.main.js:4985 g @ editor.main.js:4700 enter @ editor.main.js:4908 _run @ editor.main.js:5009 _completed @ editor.main.js:4985 g @ editor.main.js:4700 enter @ editor.main.js:4908 _run @ editor.main.js:5009 _completed @ editor.main.js:4985 e._handleMessage @ editor.main.js:8875 e.handleMessage @ editor.main.js:8864 (anonymous) @ editor.main.js:8906 worker.onmessage @ editor.main.js:9885 wrapFn @ zone.js:1188 ZoneDelegate.invokeTask @ zone.js:421 Zone.runTask @ zone.js:188 ZoneTask.invokeTask @ zone.js:496 invokeTask @ zone.js:1540 globalZoneAwareCallback @ zone.js:1566

yutthagarn commented 4 years ago

+1

chezih commented 4 years ago

+1 I'm using Angular9

shajari commented 3 years ago

+1 I'm using Angular7

laggage commented 3 years ago

+1 and any fixes or suggestions for this?