这是我的问题/升级方案:
import { ComponentProps } from './component/component'
export type ComponentProps = ComponentProps
export { ComponentProps } from './component/component'
这是我尝试构建仪表板时发生的问题:
../PROJECT/components.ts
Attempted import error: 'ComponentProps' is not exported from './component/component'.
@ ./DASHBOARD/views/components/component/component.jsx
@ ./DASHBOARD/routes/views.js
@ ./DASHBOARD/routes/routes-views.js
@ ./DASHBOARD/routes/index.js
@ ./DASHBOARD/app.jsx
@ ./DASHBOARD/index.jsx
@ multi @babel/polyfill ./config/dom-polyfill.js ./src/app/index.jsx
在打字稿升级后,组件项目中似乎有babel的东西,但我不确定要查找的内容。 有想法吗?谢谢