开发服务器返回响应错误代码:500 \ n \ n
无法从“ node_modules \ react-redux \ lib \ index.js”解析“ ./components/Provider”
BodyX:
{"originModulePath":"C:\\Users\\MY PC\\Documents\\Projects\\snapfood-customer\\node_modules\\react-redux\\lib\\index.js","targetModuleName":"./components/Provider","message":"Unable to resolve module `./components/Provider` from `C:\\Users\\MY PC\\Documents\\Projects\\snapfood-customer\\node_modules\\react-redux\\lib\\index.js`: The module `./components/Provider` could not be found from `C:\\Users\\MY PC\\Documents\\Projects\\snapfood-customer\\node_modules\\react-redux\\lib\\index.js`. Indeed, none of these files exist:\n\n
我的代码如下:
import React from 'react';
import store from './app/index';
import WelcomeScreen from './app/WelcomeScreen';
import { Provider } from 'react-redux';
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<WelcomeScreen/>
</Provider>
);
}
}