pro-mern-stack
pro-mern-stack copied to clipboard
Module fail to build new IssueReport table page for frontEnd
The table for the Reports page works fine on port 8000 but not the client port 3000.
I get this on the HMR build: ` [HMR] Cannot apply update. [HMR] Error: Module build failed: SyntaxError: Unexpected token, expected } (12:67) 10 |
12 | {statuses.map((status, index) => (
{props.counts{status}} ))} | ^ 13 |
I'm using node 8 and Webpack 3.5.4 with dev-server 2.5.1. I didn't use the object-assign because that was needed for older versions of npm. I'm using 5.3 any suggestions?
On the Network tab I get a pending respond..
I think I fixed the issue.. I added the NamedModulesPlugin to the webpack.server-config.js file to correct the issue.
plugins: [ new webpack.HotModuleReplacementPlugin(), new webpack.NamedModulesPlugin(), ],
It also shows you the name of which files are being updated on the console.