Chapter 16 - Babel Install Error


#1

I had trouble setting up Bable:

./node_modules/.bin/webpack

ERROR in Entry module not found: Error: Can’t resolve ‘babel’

BREAKING CHANGE: It’s no longer allowed to omit the ‘-loader’ suffix when using loaders.
You need to specify ‘babel-loader’ instead of ‘babel’,
see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed

I’m not sure how to resolve this…


#2

That chapter in the book is quite out-of-date now! You can see the revised version here that uses a much simpler solution for getting your project up and running: https://www.kirupa.com/react/setting_up_react_environment.htm The second edition of the book (due in March/April) will contain this updated content.

:slight_smile:


#3

Why can’t they allow for dynamic ebooks that notify you when books gets updates just like apps on the App Store. Specifically for technical books.


#4

When the 2nd edition goes out, existing owners will get notified of the new edition that they can view on their e-reader, browser, etc. Even paperback owners will get access to the digital version :stuck_out_tongue: