-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
'extends' is not compiling when used inside declaration file and importHelpers option is switched on #12724
Comments
are you using |
never mind, saw the title :) |
The error should not be shown in the .d.ts file, this a bug. but if you have |
@mhegazy yeah, this is correct |
I cannot run importHelpers with installed TypeScript Version: 2.1.4 vith VS.NET Code tsconfig.json
installation
package.json
|
@PavelPZ, the compiler uses the same module resolution strategy to resolve |
@mhegazy, thanks. I am using JSPM, so I modified my tsconfig.json:
and compiler is now OK. But there is a problem with runtime ( jspm.config.js
|
Fix for the original issue should be in tonight |
@PavelPZ i have not had time to look into the jspm issue yet. have you made progress past this issue, or are you still blocked on it? |
@mhegazy, no progress so far. I have no idea how to solve my observation |
Filed #12887 to track it. |
We are seeing this with 2.1.4 using Webpack 2 with awesome-typescript-loader. It only happens when using
|
This should be fixed in latest, can you give |
@mhegazy Just saw that in a related ticket. Just confirmed that It is indeed fixed in |
@mhegazy I just tested this issue, using the latest version
{
"name": "tslib-test",
"version": "1.0.0",
"dependencies": {
"@angular/core": "^2.4.1",
"tslib": "^1.4.0",
"typescript": "2.2.0-dev.20161217",
"rxjs": "^5.0.2",
"zone.js": "0.7.4"
}
}
{
"compilerOptions": {
"target": "es5",
"module": "es6",
"moduleResolution": "node",
"noEmitHelpers": true,
"importHelpers": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"]
}
}
import { NgModule } from '@angular/core';
@NgModule({
})
export class MyModule {
} Error in Console:
|
thanks @schmuli for the repro, fix up in https://github.com/Microsoft/TypeScript/pull/13189/files |
When it will be published? in 2.2.1 is the same |
@Delagen we believe the issue should be fixed in TS 2.2.1, if you are still seeing it please file a new issue and give us some information to reproduce the issue locally. |
Created new issue for 2.2.1: #14468 |
TypeScript Version: 2.1.4 / 2.2.0-dev.20161207
Code
Expected behavior:
Compiles successfully.
Actual behavior:
Compilation fails with the following error:
The same source code compiles fine on TypeScript 2.1.1. Installed
tslib
package has version 1.2.0.The text was updated successfully, but these errors were encountered: