You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm reaching on on regards to a compiling error received for this code-along lesson. Before writing any code I ran npm install && npm start as the lesson provides. Upon that, I received a Failed to compile error in both the browser and the console.
Fortunately I was able to find a solution provided by Dan Abramov(the co-creator of React). His states that Webpack is not compatible with create-react-app projects. I don't know if I should assume this but the lessons code-along project may have been created via create-react-app and then the addition of Webpack was made.
I followed along with Dan's solution and at the very end of his solution ran npm install && npm start which successfully delivered the browser for the lesson's code-along. I will include the link to his solution. I did alter my forked copy of the lesson's repository and made the changes on my copy only. I also did this with a technical coach on zoom and we ran through the solution together to see what would happen.
I included the error and the before and after of package.json. Along with the link to the solution.
Hello! I'm reaching on on regards to a compiling error received for this code-along lesson. Before writing any code I ran
npm install && npm start
as the lesson provides. Upon that, I received aFailed to compile
error in both the browser and the console.Fortunately I was able to find a solution provided by Dan Abramov(the co-creator of React). His states that Webpack is not compatible with
create-react-app
projects. I don't know if I should assume this but the lessons code-along project may have been created viacreate-react-app
and then the addition of Webpack was made.I followed along with Dan's solution and at the very end of his solution ran
npm install && npm start
which successfully delivered the browser for the lesson's code-along. I will include the link to his solution. I did alter my forked copy of the lesson's repository and made the changes on my copy only. I also did this with a technical coach on zoom and we ran through the solution together to see what would happen.I included the error and the before and after of
package.json
. Along with the link to the solution.Happy coding
Malind
Dan Abramov's Solution
The text was updated successfully, but these errors were encountered: