-
Notifications
You must be signed in to change notification settings - Fork 1.8k
lesson 14 broken #159
Comments
shell
node
Time created: Tue Apr 19 2016 13:58:35 GMT-0400 (EDT) |
Actually I have some thoughts. |
+1 And how do we fix it? when you say web server you mean: |
Guys, npm start doesn't work because the static index.html is missing in /public for lesson 14. You just need to add it back it for it to work. |
If adding it back is required it should be in the source, right @xiaopow? Care to make a PR with your change? |
No, that is not correct. The server has a built-in copy of the index.html file. Is |
Sorry, but it is true. Just need to add index.html back to /public. We are talking about |
No, it's not. The server is capable of rendering itself, so an index.html file is entirely redundant. Remove the The issue was that we weren't configuring that middleware to not do directory indexing. I've fixed that now. |
Hey, I have swapped it with your fix
|
hey, I have removed the |
@sameenzm, what version are you running? Ensure you're on the newest and then if your problem persists, a "sist" output may help. See my first comment for the "sist" link. |
@sameenzm You should leave that line in place. If you notice, we added the |
add index.html iv folder 'public' and npm start run |
Upon download, I execute
npm install
within/react-router-tutorial/lessons/14-whats-next
. After this is installed, I executenpm start
and the build begins.Webpack does it's work and tells me to visit
http://localhost:8080
to see the app, but I am greeted with the less-than-friendsCannot GET /
response in my browser. There are no build errors, and webpack waits in it's post-build waiting state.Am I doing something wrong?
sist output:
OS
Darwin
x64
shell
uname
: Darwinecho $SHELL
: /bin/zshecho $TERM
: xterm-256colorecho $TERM_PROGRAM
: iTerm.appnode
npm -v
: 3.6.0node --version
: v5.7.1Time created: Mon Apr 18 2016 18:16:23 GMT-0600 (MDT)
The text was updated successfully, but these errors were encountered: