-
Notifications
You must be signed in to change notification settings - Fork 49
Description
问题
应用层进行以下操作报错(包括但不仅限于):
- 不同编辑器切换
- 打开一个新的编辑器
- 点击自定义的右键菜单
## 报错信息
Uncaught Error: [createInstance] N depends on UNKNOWN service treeViewsDndService. Error: [createInstance] N depends on UNKNOWN service treeViewsDndService. at g._throwIfStrict (34624.54f3c2ebae0fa0172889.js:1:12559) at g._createInstance (34624.54f3c2ebae0fa0172889.js:1:8878) at g.createInstance (34624.54f3c2ebae0fa0172889.js:1:8667) at f._instantiateById (79216.7bcdc210d90bec076060.js:1:21952) at f._instantiateSome (79216.7bcdc210d90bec076060.js:1:21562) at 79216.7bcdc210d90bec076060.js:1:20786 at g._throwIfStrict (34624.54f3c2ebae0fa0172889.js:1:12559) at g._createInstance (34624.54f3c2ebae0fa0172889.js:1:8878) at g.createInstance (34624.54f3c2ebae0fa0172889.js:1:8667) at f._instantiateById (79216.7bcdc210d90bec076060.js:1:21952) at f._instantiateSome (79216.7bcdc210d90bec076060.js:1:21562) at 79216.7bcdc210d90bec076060.js:1:20786 at 34928.208a93e8d793d25272b0.js:1:14036
原因分析
从报错可以看出,是monaco-editor 在版本 0.52.2 中缺少 treeViewsDndService 服务依赖导致的。而这类服务只存在于 VS Code workbench 环境,不属于 Monaco standalone 环境。
解法
目前将找到的方法都进行了尝试,暂时还没办法解决。