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

Compile Error, Webpack Incompatibility #11

Closed
mekowalski opened this issue Dec 21, 2018 · 1 comment
Closed

Compile Error, Webpack Incompatibility #11

mekowalski opened this issue Dec 21, 2018 · 1 comment
Labels

Comments

@mekowalski
Copy link

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.

Happy coding
Malind

Dan Abramov's Solution

packagejsonbefore
packagejsonafter
compileerror

@maxwellbenton
Copy link
Contributor

Hi @mekowalski,

Thank you for providing this feedback and your solution. Webpack has been removed from package.json so this should not occur for any future students.

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

No branches or pull requests

3 participants
@mekowalski @maxwellbenton and others