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

App will not display after build #186

Closed
erichardson30 opened this issue Jul 8, 2016 · 7 comments
Closed

App will not display after build #186

erichardson30 opened this issue Jul 8, 2016 · 7 comments

Comments

@erichardson30
Copy link

I used this as a base application. After customizing it, when I run npm run build everything seems to be building normally but then when the page loads up I get Cannot Get / displayed. Not sure what happened...anyone else run into this issue?

Node version: 6.3

npm version: 3.10.5

Operating system: OSX 10.11

Command line used: iTerm

@coryhouse
Copy link
Owner

You mentioned that you've customized it. Does this issue occur if if you clone this repo and run it with no changes?

@erichardson30
Copy link
Author

@coryhouse No it does not. When I clone it and run the build it works fine. I haven't changed any webpack settings or package.json settings in my project. Just added components/actions/etc.

@coryhouse
Copy link
Owner

I'm going to close this then since it's not an issue with the repo, it's an issue with your app.

That said, if you post your repo, I'll give it a look.

@erichardson30
Copy link
Author

@coryhouse
Copy link
Owner

Your fork is missing tools/nodeversioncheck.js, so I had to remove the preinstall script step that references it. After doing that, I was able to move forward.

For npm run build, it's not creating index.html because you don't have any tasks that handle it. Check out the latest version of slingshot to see how this is being handled. It changed in a recent release.

@erichardson30
Copy link
Author

Okay thanks. Where is main.css being made from? That seems to be the only thing missing now

@coryhouse
Copy link
Owner

If you reference it in index.js, it'll be bundled by webpack. Note the example in the repo's index.js file.

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