Closed AdamBrodzinski closed 8 years ago
Looks like it was an issue with Redux. In one of the pull requests the author took out the bit of code that sent a JWT to the server as a param and it messed everything up. I just added it back and everything should be working!
I am still getting this error along with the style.css not being found. I just cloned it and started it up and I am getting these errors. Any ideas?
@brandonmikeska I haven't added a dynamic index.html file yet so the style.css error will still pop up. In order to facilitate hot module reloading in development, webpack needs to combine the css into the bundle.js file and not into a separate css file so the index.html file is looking for a style.css file that doesn't exist. This results in an error being thrown. The styles still work though because webpack is pushing them into the javascript bundle. However, if you were to run webpack in production mode it would create a separate css file and the index.html file wouldn't complain. In order to fix this I just need to create a dynamic index.html file that removes the link to style.css in development and puts it back for production.
You're getting an error with authentication? Can you post the exact error code?
Oh ok my apologies about the style. I need to go learn webpack haha.
For the authentication error, I get the following error when starting up the application.
Failed to load resource: the server responded with a status of 401 (Unauthorized)
@brandonmikeska Does the login feature work though? This error pops up when you go to the login page because Redux is checking to see if the user is logged in and the server responds with a 401. You should be able to login and the error will go away.
The template has some rough edges that I need to straighten out when I have some time. I'm currently in law school and have finals this week and next so I will be a bit busy until Christmas break hits. I'll definitely be ironing things out over the break. That said, everything should be working now so you should be able to get up and running.
Yes the log in works. Thank you for this template!
When I am not logged in and just visit the home page I get a 401 error (and plug says it's denied) and when I log in (jwt in localstorage btw) I get this error: