-
Notifications
You must be signed in to change notification settings - Fork 23
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
Lesson 1.2 Setting Up Your Development environment #31
Comments
Hmm Babel recently released their new version which changed a lot of things about how transforms work, and by the look of this error it's not transpiling the jsx. I'll look into this some more to get the repository up to date, but in the mean time try using the versions i'm using here: https://github.com/hojberg/mastering-react/blob/video_1_2_setting_up_your_development_environment/package.json |
Thanks Simon, with babelify 6.x the error is gone. |
@lp76 I think for now i'll have to simply link to the update code. Luckily all the concepts showcased in the videos are still very much up to date. Its just minor syntax changes that are breaking. Unfortunately with things like tech, a video course (or a book) is basically out of date the moment it ships. I'll try to help as much as possible if you have any issues. |
I got the 'npm run build' to work with the following changes.
I already had the following babel components installed globally because I'm using it with ESlint with ST3, so I am not exactly sure which package is required here. I changed the react and react-dom to 'latest'
which resulted in a the following package.json updates. (I made no other changes to package.json)
I then added a file at the root of the project '.babelrb' with:
Then I ran 'npm run build' and received no errors and a complete bundle.js file. |
I, too, solved this using the same steps as the above comment: and then adding a .babelrc file with: These links have more info on the changes and how to use the babel options: |
@HyperSprite @danielsdesk thanks for the updates! |
@hojberg any chance of updating the code? |
Hi, I'm starting your video course and I encounter an error when I run the build command:
This is my package.json
The text was updated successfully, but these errors were encountered: