Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin-grid with angular2 rising an error

Suma N
5 years ago Jun 30, 2016 7:04am
Tomi Virkki
5 years ago Jul 05, 2016 6:45am
Suma N
5 years ago Jul 05, 2016 7:05am
Tomi Virkki
5 years ago Jul 05, 2016 7:20am
Suma N
5 years ago Jul 05, 2016 8:39am
Tomi Virkki
5 years ago Jul 05, 2016 9:05am
Suma N
5 years ago Jul 05, 2016 9:28am
Tomi Virkki
5 years ago Jul 05, 2016 9:38am
Suma N
5 years ago Jul 05, 2016 10:45am
Tomi Virkki
5 years ago Jul 05, 2016 10:48am
Suma N
5 years ago Jul 05, 2016 10:49am
Tomi Virkki
5 years ago Jul 05, 2016 11:25am
Suma N
5 years ago Jul 06, 2016 5:13am
Tomi Virkki
5 years ago Jul 06, 2016 9:18am

Hi
We debugged this with a colleague and found the original issue:
The updated Angular 2 Quickstart imports Angular 2 umd bundles instead of the separate source files and angular2-polymer 1.0.0-beta1 only targets the src scope when setting a custom DOM adapter. This will be fixed by https://github.com/vaadin/angular2-polymer/pull/44 in the next beta release.

Anyway, you can get your original project working with latest Angular 2 RC as well by adding 

System.packageWithIndex = true;

to the beginning of systemjs.config.js file.

Tomi Virkki
5 years ago Jul 06, 2016 12:17pm

We also just released the fixed angular2-polymer library as 1.0.0-beta2 :)
So that should work in the original project without changes needed.

Suma N
5 years ago Jul 07, 2016 11:00am
Tomi Virkki
5 years ago Jul 07, 2016 11:55am

Hi
Appears you forgot to add this line to tsconfig.json
The bower.json is also missing some dependencies that are imported in index.html
Remember to configure the .bowerrc file as adviced here to get the bower_components to the correct folder

Suma N
5 years ago Jul 08, 2016 5:28am