Closed alaingalvan closed 7 years ago
I tried compiling the plugin to commonjs and it got rid of the error, but now it seems as though SystemJS isn't configured by the time the transpiler is running.
I set the default config in createFactory
to include jsx: 'react
and module:
system` and that fixed my problem for now.
My question is Why isn't SystemJS configured with what I'm passing to SystemJS Builder's Configuration? I guess that's a question for Builder and not this repo.
Here's a repo with the changes I did, I can send a pull request if it's ok:
Thanks for raising this and sorry for not responding before. There have been a number of issues related to systemjs@0.20 and plugin-typescript 6.0.0 so it is hard for me to know which one this was, but I hope it is working in 7.0.4 (although without type-checking support)
Looking at your configuration I see that you have typescriptOptions
specified in packages configuration - this was not supported in 6.x.x and that was probably why it was not getting picked up. The good news is it is supported as a new feature in 7.x.x so hopefully that will work now, let me know if you still have issues and I will reopen this.
Hey, was running into an error today while trying to compile some files using SystemJS Builder and transpile them with
plugin-typescript
.Stack Trace
I tried giving a name to
plugin-typescript/lib/plugin.js
and that did clear the error, but that resulted in an emptybundle.js
output file.Dependencies
I'm using the latest versions of
plugin-typescript
,systemjs-builder
, andtypescript
.I've tried using the version from the master branch here on github, and tried upgrading systemjs to 0.20, no dice,
Builder Config