Ngx-datatable: AoT not outputting files after 2.3.0 upgrade

Created on 9 Dec 2016  路  13Comments  路  Source: swimlane/ngx-datatable

After I updated to ng 2.3.0, the ngc is not compiling the metadata files/etc.

@Brocco - any ideas ;)

Bug Investigate Med

Most helpful comment

I am having compilaton issues using angular-cli: 1.0.0-beta.22-1 and angular version 2.2.3
That is what I've got when running ng build:

Cannot read property 'VisibilityDirective' of undefined, resolving symbol Angula
r2DataTableModule in c:/Project/node_modules/angular2-data-table/release/datatable.module.d.ts,
resolving symbol Angular2DataTableModule in c:/Projects/node_modules/angular2-data-table/release/
datatable.module.d.ts

I had typescript 2.1.4 installed globally which I get rid off. So then I did install version 2.0.10 in to the project and then version 2.0.3 but didn't help

UPDATE:
I did downgrade the angular2-data-table to version 2.1.3 so this way I get to pass the build. All versions above 2.1.3 giving the error Cannot read property 'VisibilityDirective'

All 13 comments

I had to downgrade to the 2.2 version. With angular-cli I have this error:
building modules 3/3 modules 0 active(node:10230) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Angular2DataTableModule is not an NgModule

The recent issues I've seen/heard of regarding ngc are related to changes in TypeScript 2.1 and what metadata is being emitted. AFAIK a fix is being researched.

@amcdnl is it possible to create a new release (2.2.1) ? Thanks in advance !

Will do it this morning! @BafS

Thank you, unfortunately I still have an error.

(node:4580) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot read property 'VisibilityDirective' of undefined, resolving symbol Angular2DataTableModule in .../node_modules/angular2-data-table/release/datatable.module.d.ts, resolving symbol Angular2DataTableModule in /.../node_modules/angular2-data-table/release/datatable.module.d.ts

@BafS I assume you're TypeScript version is 2.1+ can you try and lower your TS version down to ~2.0.3?

The same issues with this lib are likely affecting your app.

@Brocco I use typescript version 2.0.10 for my app. (in case, here is my package.json).

Downgraded to 2.0.x and re-releaased. Per discussions today Angular4 will be the version that supports TS 2.1.x so will have to wait for that.

I am having compilaton issues using angular-cli: 1.0.0-beta.22-1 and angular version 2.2.3
That is what I've got when running ng build:

Cannot read property 'VisibilityDirective' of undefined, resolving symbol Angula
r2DataTableModule in c:/Project/node_modules/angular2-data-table/release/datatable.module.d.ts,
resolving symbol Angular2DataTableModule in c:/Projects/node_modules/angular2-data-table/release/
datatable.module.d.ts

I had typescript 2.1.4 installed globally which I get rid off. So then I did install version 2.0.10 in to the project and then version 2.0.3 but didn't help

UPDATE:
I did downgrade the angular2-data-table to version 2.1.3 so this way I get to pass the build. All versions above 2.1.3 giving the error Cannot read property 'VisibilityDirective'

doh. 4.0.0 is the only version on npm :-(
no downgrade work around for me

You can use angular2-data-table in the meantime.

i didn't put 2+2 together and realize the project had been renamed.

Was this page helpful?
0 / 5 - 0 ratings