-
Notifications
You must be signed in to change notification settings - Fork 135
module 'tslib' cannot be found #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like a duplicate of microsoft/TypeScript#12724 can you give |
yeah that seems to work. thanks! I guess I'll wait for 2.2 to go to |
We should be publishing 2.1.5 with he fix soon. |
@mhegazy any clarity you can offer on "soon"? |
We are targeting next week. |
Hello, I've installed TypeScript 2.1.5 Tools for Visual Studio as well as the npm package globally AND in my project, and I'm still getting red squiggly lines under code like this:
Tooltip error being this syntax requires an imported helper but module 'tslib' cannot be found. Note that it doesn't prevent the project from being transpiled. TSLib 1.5.0 is in my package.json dependencies section, and it's in node_modules. tsconfig has importHelpers = true. Since it's Visual Studio related I tried to add this line (not documented but makes sense) in my .csproj:
I'm not supposed to import it explicitly, do I? Or maybe point to a definition file? |
@Strato, this looks like a bug do you mind filing a new issue under https://github.com/Microsoft/TypeScript/issues |
Done. |
Following is my package.json
Once i run 'ng test', i receive the following errors:
I deleted node_modules and ran 'npm install'. But this solution didn't work. |
try npm install --save tslib, thats what helped me out. |
Hi guys. I'm getting this error when I run `node_modules/.bin/tsc' in the following folder.
error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
The offending line (rxjs/Subscriber.d.ts(13,36) does indeed include an innocent looking
extend
keyword. Can you tell me what I'm doing wrong?src/main.ts
tsconfig.json
package.json
rxjs/Subscriber.d.ts(13)
I posted my question to stackoverflow but can't get any interest
The text was updated successfully, but these errors were encountered: