geelen / jspm-loader-css

50 stars 27 forks source link

Uncaught SyntaxError: Unexpected token { (WARNING: non-Error used) #15

Closed chenxsan closed 9 years ago

chenxsan commented 9 years ago

With the latest babel:

System.config({
  "map": {
    "babel": "npm:babel-core@5.8.20",
    "babel-runtime": "npm:babel-runtime@5.8.20",

import '../style/app.css! with jspm-loader-css would throw errors in console:

screen shot 2015-08-02 at 21 41 51

I tried jspm-loader-css with

"babel": "npm:babel-core@5.7.4",
    "babel-runtime": "npm:babel-runtime@5.7.0",

Everything works as expected.

chenxsan commented 9 years ago

I thought it maybe the problem of babel, just tested babel@5.8.19, no errors then.