ng2-smart-table icon indicating copy to clipboard operation
ng2-smart-table copied to clipboard

App does not compile with Ivy

Open vusolapohvistr opened this issue 5 years ago • 19 comments

Trace: (node:3005) UnhandledPromiseRejectionWarning: Error: Error on worker #2: Error: Failed to compile entry-point ng2-smart-table (fesm5 as esm5) due to compilation errors: node_modules/ng2-completer/src/modules/ng2-completer.module.d.ts:2:22 - error NG6002: Appears in the NgModule.imports of CellModule, but could not be resolved to an NgModule class

2 export declare class Ng2CompleterModule { ~~~~~~~~~~~~~~~~~~ node_modules/ng2-completer/src/modules/ng2-completer.module.d.ts:2:22 - error NG6002: Appears in the NgModule.imports of FilterModule, but could not be resolved to an NgModule class

2 export declare class Ng2CompleterModule { ~~~~~~~~~~~~~~~~~~ node_modules/ng2-smart-table/fesm5/ng2-smart-table.js:1003:5 - error NG6002: Appears in the NgModule.imports of TBodyModule, but itself has errors

1003 var CellModule = /** @class */ (function () { ~~~~~~~~~~ node_modules/ng2-smart-table/fesm5/ng2-smart-table.js:1433:5 - error NG6002: Appears in the NgModule.imports of THeadModule, but itself has errors

1433 var FilterModule = /** @class */ (function () { ~~~~~~~~~~~~ and so on

vusolapohvistr avatar Feb 10 '20 13:02 vusolapohvistr

Same issue

arthurflor23 avatar Feb 10 '20 15:02 arthurflor23

was already upgrading to angular 9

vicenthy avatar Feb 12 '20 23:02 vicenthy

same

BobCashStory avatar Feb 16 '20 21:02 BobCashStory

whts the solution to this ?

shadabk92 avatar Feb 18 '20 05:02 shadabk92

whts the solution to this ?

Unfortunately, it seems that the only solution at the moment is to disable Ivy if your application depends on this library.

This library probably won't be updated to support Angular v9 as it is currently not really being maintained. See Low Maintenance notice in the README

custompro12 avatar Feb 18 '20 17:02 custompro12

@custompro12 not a real solution since ivy make the build way more faster and that why we want to upgrade

BobCashStory avatar Feb 20 '20 11:02 BobCashStory

I think this issue is more angular or angular/cli here

arthurflor23 avatar Feb 20 '20 13:02 arthurflor23

First ng2-completer should be updated.

https://github.com/oferh/ng2-completer/issues/443

giansalex avatar Feb 23 '20 17:02 giansalex

Same! It's the only component in my project that isn't compatible with Ivy :(

dmantelli avatar Feb 26 '20 17:02 dmantelli

Other table component options?

giansalex avatar Feb 26 '20 19:02 giansalex

is there any update or any solution for compatible with Ivy?

mohsenmahoski avatar Mar 03 '20 14:03 mohsenmahoski

i think the problem from ng2-completer try to install this version npm install --ignore-scripts ng2-completer@next

osamaalnuimi avatar Mar 11 '20 06:03 osamaalnuimi

After install ng9 and ng2-completer@next, this change is required: image

giansalex avatar Mar 11 '20 23:03 giansalex

Can we have a time frame on this ng2-smart-table issue? If this component is just an experimental toy-ish component with no potential future then I personally need to hunt for some other components. I am very much surprised that this library with almost 15K downloads a week is getting this level of disregard and abandonment by its own development team.

majhoos avatar Mar 15 '20 21:03 majhoos

@majhoos +1

lenichols avatar Apr 23 '20 23:04 lenichols

@majhoos I totally agree with you, but I believe they have this product for money, so the have separated the commercial version and this one. In this one they don't invest time.

A question for you, have you found a replacement for this component?

HackPoint avatar May 16 '20 10:05 HackPoint

@HackPoint where is the paid version? If its updated and working I'll need to subscribe to it.

lenichols avatar May 19 '20 12:05 lenichols

@HackPoint I have not made any final decision on this yet but one option I have considered so far is the community edition of ag-gird which is free. Their enterprise version is quite expensive and restrictive (in terms of installation) which makes it economically unviable.

majhoos avatar May 19 '20 13:05 majhoos

Maybe at least merge https://github.com/akveo/ng2-smart-table/pull/1319, which seems to be approved already... We will wait a bit more time, but in the worse case, we will fork and update ourselves (using Smart Table in https://github.com/ever-co/ever-gauzy heavily, not easy to replace)

evereq avatar Mar 25 '23 16:03 evereq