rennzhang / codemirror-editor-vue3

CodeMirror component for Vue3
https://rennzhang.github.io/codemirror-editor-vue3
MIT License
202 stars 41 forks source link

需要更新 package 資訊 #51

Closed s1495k043 closed 5 months ago

s1495k043 commented 5 months ago

Describe the bug

使用時出現 There are types at 'd:/projects/vue-project/node_modules/codemirror-editor-vue3/dist/packages/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'codemirror-editor-vue3' library may need to update its package.json or typings. 我想你需要在 package.json 加入 "exports": { ".": { "types": "./dist/packages/index.d.ts" },

Validations

rennzhang commented 5 months ago

感谢指出问题!

另外是否可以提供下您的 vue typescript vite vscode 版本呢

rennzhang commented 5 months ago

2.6.0 版本已增加相应内容

rennzhang commented 5 months ago

我自己在安装时也碰到类似的问题,但重启 TS 服务器后该问题消失了

image