Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module fail to build new IssueReport table page for frontEnd #29

Open
arrmixer opened this issue Sep 16, 2017 · 1 comment
Open

Module fail to build new IssueReport table page for frontEnd #29

arrmixer opened this issue Sep 16, 2017 · 1 comment

Comments

@arrmixer
Copy link

arrmixer commented Sep 16, 2017

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 |
11 | {props.owner}

12 | {statuses.map((status, index) => ({props.counts{status}}))}
| ^
13 |
14 | );
`

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..

@arrmixer
Copy link
Author

arrmixer commented Sep 17, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant