DEV Community

Discussion on: MERNG PROJECT... I NEED HELP!! IM SICK OF THE ERRORS!!!!

Collapse
 
gamezcua1 profile image
Gerald Amezcua

I would really recommend you to go ahead and read about what Babel is. JavaScript, more specifically EcmaScript has now a days way many different versions and ways to do the same kind of stuff, if you use EcmaScript 2016 you'll make use of "import something from 'package'" but instead if you use EcmaScript 8 you'd have to use "const something = require ('package')"

I would really recommend you to take a look at that so that you can better understand what they mean and how to work with them and compile them into the one you most likely need.

Collapse
 
stereobooster profile image
stereobooster
  • ES6 = EcmaScript 2015 (yeah it's confusing). This is where ES modules first apeared
  • require ('package') never was in EcmaScript standard. It is node.js thing, which also supported by Babel, Webpack etc