Closed sltenorio99 closed 5 years ago
any progress on this issue?
@sorrycc do you have any ETA for reviewing fix ?
解决办法:安装@babel/plugin-transform-runtime
配置babelrc:
{
"presets":["@babel/react", "@babel/env"],
"plugins": [
"dva-hmr",
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-runtime",
[
"import", {
"libraryName": "antd",
// "libraryDirectory": "es",
"style": true
}
]
]
}
Would someone be able to make a reproducible example and and let us know in https://github.com/babel/babel/issues/8641 ? This seems like an accidental breakage in Babel 7's code.
After an upgrade of a work project Babel 7, we experienced
cannot read property 'file' of undefined
errors with this plugin and webpack wouldn't compile.Proposed Fix: #13