Open bashayerAlsalman opened 3 years ago
@bashayerAlsalman Any update on your end?
I am getting a similar issue while integrating with Angular 5
I tried integrating this library with Angular 5. On doing npm install(as suggested in Readme) I got the below versions "ngx-sortablejs": "^11.1.0", "sortablejs": "^1.14.0", "@types/sortablejs": "^1.10.7",
But after including it in Angular I get the below error
ERROR in node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(49,82): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(67,82): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(76,96): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(85,82): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(85,121): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(96,55): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(103,82): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/node_modules/tslib/tslib.d.ts(123,82): error TS2304: Cannot find name 'unknown'.
node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(25,17): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(26,17): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(28,17): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(30,17): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-sortablejs/lib/sortablejs.module.d.ts(4,45): error TS2315: Type 'ModuleWithProviders' is not generic.
@bashayerAlsalman did it work for u in angular 6?
@nandita121189 apologize for the late replay, I used primeng/dragdrop
instead.
When using the latest version of ngx-sortablejs with angular 6.
this error come across while running the project
ERROR in node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(25,17): error TS1086: An accessor cannot be declared in anambient context. node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(26,17): error TS1086: An accessor cannot be declared in an ambient context. node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(28,17): error TS1086: An accessor cannot be declared in an ambient context. node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts(30,17): error TS1086: An accessor cannot be declared in an ambient context. node_modules/ngx-sortablejs/lib/sortablejs.module.d.ts(4,45): error TS2315: Type 'ModuleWithProviders' is not generic.