Closed dyggod closed 2 years ago
@dyggod hihi 可以把 'import' 改成 'import type'试试看。
@dyggod hihi 可以把 'import' 改成 'import type'试试看。 感谢回复,将
import
修改为import type
确实可行。不过此处是否应在源码中修复?
@dyggod hihi 可以把 'import' 改成 'import type'试试看。 感谢回复,将
import
修改为import type
确实可行。不过此处是否应在源码中修复?
是的。下个版本我修改一下。如果有兴趣也可以提交pr参与哈。
@sHow8e 建议设置下 eslint 的规则 https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-imports.md
从提示信息来看,不像eslint的问题。应该是某个ts相关的模块解析的提示。规范一下写法比较好。
基本信息
额外补充
issue #52 最后给出了一种解决方式为引入
@arco-design/web-vue/es/upload/interfaces.d
文件,但这并不常规预期结果
预期:正常运行,打开3000端口看到登录页 实际: 命令行提示:The following dependencies are imported but could not be resolved:
@arco-design/web-vue/es/upload/interfaces (imported by D:/github/growser/src/views/user/setting/components/user-panel.vue?id=0)
Are they installed?
复现步骤
acro init my-project
cd my-project
pnpm install
pnpm run dev