There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
In the Browser compatibility and transpilation lesson, part 10: build, after I’ve done everything is the code supposed to switch from ES6 to ES5 because I kinda got the impression that’s what was going to happen, but nothing happened…
Do we need to do anything with the HTML of the website to take advantage of the 2 different code lines? Is there something that we need to include in the header?
If you set the property value of “build” to “babel src --out dir -d lib” instead of what is recommended in the lesson, you can see the lib folder created in the directory and the transpiled code in the main.js file therein.
After attempting several times (refreshing and resetting) it worked! The lib folder was created.
Don’t ask me why. I checked all the code and it seems the same as before.
When i try to do the same things like in lesson on my own computer I meet problem like: “couldn’t find preset “env” relative to directory” What can be an issue?