We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
npm i --save-dev @types/vue-codemirror
declare module 'vue-codemirror/src/codemirror.vue';
将import路径改为import codemirror from 'vue-codemirror/src/codemirror.vue 未解决问题。
https://github.com/surmon-china/vue-codemirror/tree/v4.0.6#cdn
System: OS: Windows 10 10.0.19045 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 5.37 GB / 15.86 GB Binaries: Node: 16.3.0 - D:\SoftWare\nodejs\node.EXE npm: 8.1.2 - D:\SoftWare\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.3570.0), Chromium (118.0.2088.69) Internet Explorer: 11.0.19041.3570 npmPackages: vue-cli: ^2.9.6 => 2.9.6
npm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
[email protected]引入[email protected]找不到codemirror.vue;
按文档全局挂载:import VueCodemirror from 'vue-codemirror'
组件挂载:import { codemirror } from 'vue-codemirror'
报错信息如下:f:/..../node_modules/vue-codemirror/src/codemirror.vue.js”隐式拥有 "any" 类型。尝试使用
npm i --save-dev @types/vue-codemirror
(如果存在),或者添加一个包含declare module 'vue-codemirror/src/codemirror.vue';
的新声明(.d.ts)文件ts(7016)将import路径改为import codemirror from 'vue-codemirror/src/codemirror.vue 未解决问题。
Reproduction
https://github.com/surmon-china/vue-codemirror/tree/v4.0.6#cdn
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: