Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

index.html:40 GET http://localhost:8191/bundle.js net::ERR_CONNECTION_REFUSED #22

Closed
firedev opened this issue Dec 4, 2016 · 2 comments

Comments

@firedev
Copy link

firedev commented Dec 4, 2016

Hi,

When I launch oni in Terminal it opens an Electron windows with the following error:

index.html:40 GET http://localhost:8191/bundle.js net::ERR_CONNECTION_REFUSED

Should I run anything else other than npm install -g oni ?

Thanks.

@bryphe
Copy link
Member

bryphe commented Dec 4, 2016

Hi there,

Do you happen to have the NODE_ENV environment variable set to DEBUG?

There's code to load the bundle based on that variable:

        var path = "dist/browser/bundle.js"
        if(process.env.NODE_ENV === "development") {
            path = "http://localhost:8191/bundle.js";
        }

For use with webpack. I'd like to make this more robust in the future - potentially at least addd another environment variable.

In the meantime, can you check if the NODE_ENV variable is set? If so, clearing it when starting the process might be a workaround in the meantime. Thanks for trying it out!

@firedev
Copy link
Author

firedev commented Dec 5, 2016

Indeed, I have it set to development maybe that was a bad idea. I'll clean it up. Thanks!

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

No branches or pull requests

2 participants