awayjs / core

The root dependency for all AwayJS modules
Apache License 2.0
61 stars 15 forks source link

tslib cannot be found #11

Open theethernaut opened 7 years ago

theethernaut commented 7 years ago

Typescript compilation yields the following error:

lib/errors/AbstractMethodError.ts(7,34): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.

rob-bateman commented 7 years ago

You need to uncomment the tslib alias in the webpack config your using

theethernaut commented 7 years ago

Can you add a link to the line in the code?

rob-bateman commented 7 years ago

https://github.com/awayjs/awayjs-examples/blob/master/webpack.config.js#L76

theethernaut commented 7 years ago

Right, I'm compiling typescript in this module directly (core), not on the examples. That is, I'm executing "tsc" or "npm run build" in @awayjs/core, not in @awayjs/awayjs-examples.