asotog / squeezebox

Simple Angular 2 accordion component
19 stars 8 forks source link

Unable to load transpiler to transpile #3

Closed avoliva closed 7 years ago

avoliva commented 7 years ago

Any idea how to solve this? I get this in the console when I install the package and include it in my SystemJS config.

asotog commented 7 years ago

are you able to replicate it with plunkr ? which angular version you using ? can you paste more config details here ?

avoliva commented 7 years ago

Latest version of angular 2 Basically my config looks like the one in the demo plunkr but without these lines:

 // DEMO ONLY! REAL CODE SHOULD NOT TRANSPILE IN THE BROWSER
    transpiler: 'ts',
    typescriptOptions: {
      tsconfig: true
    },
    meta: {
      'typescript': {
        "exports": "ts"
      }
    },

Here's an example: http://plnkr.co/edit/fzerwM4sd1y26sQ0LSXh?p=preview

Still getting the hang of angular and typescript so I'm not sure how to proceed. It seems we don't want it being transpiled in the browser, but it needs to be transpiled at some point.

avoliva commented 7 years ago

Any idea?

asotog commented 7 years ago

From your plunkr, systemjs.config.js was missing

transpiler: 'ts',
    typescriptOptions: {
      tsconfig: true
    },
    meta: {
      'typescript': {
        "exports": "ts"
      }
    },

and squeezebox default extension was missing js instead of ts