Re: Django sending syntax errors on ES syntax of imported JS file

2018-03-02 Thread Jani Tiainen
Well that was my intention to mean that this particular feature (import statement) seems to lack support for somewhat popular browsers. Also I think caniuse lags a bit since if I'm not mistaken latest FF supports import. And in any case JS errors are not Django related. 2.3.2018 13.30 "Jason"

Re: Django sending syntax errors on ES syntax of imported JS file

2018-03-02 Thread Jason
Jani Tiainen, Your assertion that ES is not very well supported is incorrect. Most of ES6 is in fact highly supported across browsers except for certain specifications that are still being worked on regarding implementation details. For reference, look at

Re: Django sending syntax errors on ES syntax of imported JS file

2018-03-01 Thread Jani Tiainen
Hi, looks like you're using original typed library which is written in ES and it's not very well supported among the browsers. You should pick transpiled version from lib-directory, that should work with all browsers without problems. On Fri, Mar 2, 2018 at 8:32 AM, lakeshow

Django sending syntax errors on ES syntax of imported JS file

2018-03-01 Thread lakeshow
I'm attempting to use the script of a third party JS library: {% block javascript %} ...{% endblock javascript %} Doing so will return an error: `Uncaught SyntaxError: Enexpected token {` And this error refers to line 1 of 'typed.js', more specifically, this line of JS code: