Skip to content
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

Cannot use interfaces from @progress/kendo-angular-charts when targeting es2015 #2355

Closed
AlexKichkailo opened this issue Jun 25, 2019 · 4 comments
Assignees

Comments

@AlexKichkailo
Copy link

AlexKichkailo commented Jun 25, 2019

When trying to use an interface from @progress/kendo-angular-charts, an error is shown during the build if tsconfig targets es2015. There are no errors if tsconfig targets es5.

Steps to reproduce the behavior:

  1. create a new Angular 8 application using ng new ang8.
  2. install @progress/kendo-angular-charts
  3. create a new file series-wrapper.ts.
    `import { Series } from '@progress/kendo-angular-charts';

export class SeriesWrapper {
constructor(
public series: Series
) { }
}
`
4) Use the file in app.component.ts
public seriesWrapper = new SeriesWrapper(null);
5) Build the project with npm run start

Build fails with the following error

ERROR in ./src/app/series-wrapper.ts 8:12-18
"export 'Series' was not found in '@progress/kendo-angular-charts'

See attached the attached file with the repro
ang8.zip

Expected behavior
Build does not fail. Application is working.

@tsvetomir tsvetomir self-assigned this Jun 26, 2019
@tsvetomir
Copy link
Member

tsvetomir commented Jun 26, 2019

This looks like a regression in @angular-devkit/build-angular. Please, try downgrading to v0.800.3:

diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
     "@progress/kendo-theme-default": "latest"
   },
   "devDependencies": {
-    "@angular-devkit/build-angular": "~0.800.0",
+    "@angular-devkit/build-angular": "0.800.3",
     "@angular/cli": "~8.0.4",
     "@angular/compiler-cli": "~8.0.1",
     "@angular/language-service": "~8.0.1",

There are a few similar bug reports logged in https://github.com/angular/angular:

We'll monitor the issue and try to come up with a workaround, if possible.

Edit: Updated to latest working version 0.800.3

@tsvetomir
Copy link
Member

Root issue is angular/angular-cli#14876 — not sure why it's closed though. It is still broken in @angular-devkit/[email protected].

@AlexKichkailo
Copy link
Author

@tsvetomir yeah, thanks for clarifying. Downgrading to "@angular-devkit/build-angular": "0.800.3", fixes the problem. Please feel free to close this issue if needed.

@tsvetomir
Copy link
Member

Seems to be fixed in v0.800.5 and later — see angular/angular-cli#14876 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants