You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to try using tslib with my React project, but am running into tsc compiler errors. It works fine with Webpack, but when compiling with "tsc" the React type definitions are not playing nicely.
186 class PureComponent<P, S> extends Component<P, S> { }
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/react/index.d.ts(186,31): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
I have tslib installed as a dev-dependency and in my tsconfig.json I have the compilerOption set: "importHelpers": true
The text was updated successfully, but these errors were encountered:
nickzelei
changed the title
Unable to compile React when using tslib
Unable to build react project when using tslib
Dec 16, 2016
This is a duplicate of microsoft/TypeScript#12724. We'll be publishing TypeScript 2.1.5, but you can ignore the error for the time being if you still need to use tslib (or install typescript@next).
I wanted to try using tslib with my React project, but am running into tsc compiler errors. It works fine with Webpack, but when compiling with "tsc" the React type definitions are not playing nicely.
I have tslib installed as a dev-dependency and in my tsconfig.json I have the compilerOption set:
"importHelpers": true
The text was updated successfully, but these errors were encountered: