Cannot find file: ‘index.js’ does not match the corresponding name on disk: ‘.\node_modules\React\react’.
因为在webpack.config.js配置了自动引入React和Component
解决方法把 : “React"改为"react”,
new webpack.ProvidePlugin({
React: "react", //注意此处的react不要大写
Component: ["react", "Component"]
})