Skip to content Skip to sidebar Skip to footer

Karma + Jspm + Typescript - Not Found '.ts.js'

Mainly just trying to get Karma+JSPM to play nice on loading the .ts files but having absolutely no luck. I see up a discussion repo with a stripped down example. Basically JSPM wi

Solution 1:

package level "defaultExtension": "ts" does not apply because karma is running in the top-level directory, one level above src directory which contains config.js with

baseURL:'.'

If I duplicate app package config there with src prepended to it, like this:

  packages: {
    "src/app": {
      "main": "app",
      "defaultExtension": "ts",
      "meta": {
        "*.ts": {
          "loader": "ts"
        }
      }
    },
    "app": {
      "main": "app",
      "defaultExtension": "ts",
      "meta": {
        "*.ts": {
          "loader": "ts"
        }
      }
    }
  },

I'm able to get one step further. I'm now getting

Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:9876/jspm_packages/github/frankwallis/plugin-typescript@5.0.9.js

which indicates to me that karma-jspm plugin is unable to serve source files at URLs where SystemJS expects them to be

Post a Comment for "Karma + Jspm + Typescript - Not Found '.ts.js'"