在运行android开发模式时,由于将道具传递给DrawerItems而收到该错误
<DrawerItems {...props}/>
haul.config.js
import { createWebpackConfig } from "haul";
export default {
webpack: env=>{
var config = createWebpackConfig({
entry: `./index.js`
})(env);
config.module.rules = [
...config.module.rules,
{
test: /\.js/,
exclude: /node_modules(?!.*[\/\\](query-string|strict-uri-encode))/,
loader: 'babel-loader'
},
];
return config;
}
};
本机0.55.4 拖1.0.0-rc7 Windows 7