How to add or enable ES 6 in an existing project RRS feed

  • Question

  • User1678602988 posted

    I am using VS 2017 Professional and would like to add ES6 Classes to an existing MVC project.  From what I have read, VS 2017 is supposed to run these without the need for any addons or config files.  And this does hold true if a create brand new project, but not with any of the existing projects I have tried. 

    The IDE seems to recognize the code (ie  class MyTest{}....), but when the web application is run, I get JavaScript critical error at line 1, column 1 in http://localhost:62343/Scripts/test.js\n\nSCRIPT1002: Syntax error.

    This also happens with other code samples I have found on the web. My guess is that I am missing a nuget package or something, but am having difficulity figuring out what it is.

    Can someone help point me in the right direction?


    Wednesday, December 27, 2017 3:25 AM

All replies