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
api.addUmiExports(() => [ { specifiers: ['Reducer'], source: 'redux', }, ]);
通过 api.addUmiExports 添加导出,比如上面的 Reducer 是一个 type ,在编译的时候就会提示无法找到 "export 'Reducer' was not found in 'redux',看是不是能先关掉 warning 日志。
api.addUmiExports
Reducer
"export 'Reducer' was not found in 'redux'
通过升级 typescript 版本,使用最新的语法。
export type { Reducer } from 'redux';
发现 babel 还没有支持。
The text was updated successfully, but these errors were encountered:
babel/babel#11171
Sorry, something went wrong.
Wait for babel@7.9 .
我的临时的解决方案是将
import { IndexModelState } from './index'; import { SettingsModelState } from './settings'; import { ListModelState } from './list'; export { ListModelState, SettingsModelState, IndexModelState };
修改为
export * from './index'; export * from './settings'; export * from './list';
https://github.com/babel/babel/releases/tag/v7.11.6
ycjcl868
No branches or pull requests
What happens?
通过
api.addUmiExports
添加导出,比如上面的Reducer
是一个 type ,在编译的时候就会提示无法找到"export 'Reducer' was not found in 'redux'
,看是不是能先关掉 warning 日志。尝试修复
通过升级 typescript 版本,使用最新的语法。
发现 babel 还没有支持。
相关环境信息
The text was updated successfully, but these errors were encountered: