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

HMR failing #38

Open
tim-field opened this issue Mar 6, 2016 · 1 comment
Open

HMR failing #38

tim-field opened this issue Mar 6, 2016 · 1 comment

Comments

@tim-field
Copy link

I'm using this setup in my project, but I'm unable to get a successful build, it seems that HMR isn't working correctly. In the console HMR is timing out by the looks.

image

What does src refer to here? Maybe this is related.
https://github.com/christianalfoni/webpack-express-boilerplate/blob/master/server.js#L18

The only area that I really vary from you setup is having a .bablerc file instead of doing this all in webpack.config.js as I'm using Relay, and Relay needs it's plugin defined in here for some reason.

{
    "env": {
    "development": {
        "passPerPreset": true,
        "presets": [
        {
        "plugins": [
            "./build/babelRelayPlugin"
        ]
        }, "react", "es2015", "stage-0", "react-hmre"],
    },
    "production": {
        "passPerPreset": true,
        "presets": [
        {
        "plugins": [
            "./build/babelRelayPlugin"
        ]
        }, "react", "es2015", "stage-0"],
    }
    }
}
@christianalfoni
Copy link
Owner

Hm, you got any progress on this? Sorry for late reply. Your files needs to be in src folder yes. There has been some updates to the boilerplate if you want to give it another try :)

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

2 participants