Closed unional closed 8 years ago
That error indicates to me that interfaces.ts is not being transpiled at all, and the same scenario works in https://github.com/frankwallis/plugin-typescript/blob/master/examples/angular/src/example-types.ts.
Perhaps try adding packages configuration to force interfaces.ts through the plugin?
Thanks.
Adding meta
solves the problem. Upgrading from jspm 0.16 to 0.17 remove that.
However, why do I need it? Other typescript files are being transpiled and executed fine.
By the way, in https://github.com/frankwallis/plugin-typescript/blob/master/examples/angular/src/example-types.ts it works probably becuase enum
is value, so it does export JS file.
packages: {
"myModule": {
"main": "index.ts",
"defaultExtension": "ts",
meta: {
"*.ts": {
loader: "plugin-typescript"
}
}
}
}
I don't really have an answer to this, except that if you are type-checking the plugin should be configured with meta
. If it is not then it is treated as the internal transpiler rather than a plugin and that means that some of the plugin hooks are not run.
When I load it on karma with electron, it fails with:
Let me know if you need other information. Thanks Frank 🌷