前端
后青春的晴诗
这个作者很懒,什么都没留下…
展开
-
vue使用引用库中的方法
monaco-editor-vue的官方源码如下 Index.js import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; function noop() { } export { monaco }; export default { name: 'MonacoEditor', props: { diffEditor: { type: Boolean, default: false }, //是否使用原创 2021-07-22 20:08:01 · 208 阅读 · 1 评论 -
vue使用monaco-editor的demo
npm install monaco-editor@0.26.0 npm install monaco-editor-webpack-plugin@4.0.0 //这个必须安装,不然起不来 vue使用monaco-editor的demo test.vue <template> <div id="container" style="height: 1000px"></div> </template> <script> import * as m原创 2021-07-21 16:10:56 · 394 阅读 · 0 评论 -
Cannot find module ‘vs/editor/contrib/inlineHints/inlineHintsController‘
报错原因: monaco-editor-webpack-plugin和monaco-editor的版本对应出现了问题 排查思路: 查看本地包对应的依赖 npm list --depth 0 按照提示安装正确的monaco-editor https://www.npmjs.com/package/monaco-editor-webpack-plugin ...原创 2021-06-18 17:42:23 · 1916 阅读 · 2 评论