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

Angular 6 issue compatibility #245

Open
bashayerAlsalman opened this issue Sep 16, 2021 · 3 comments
Open

Angular 6 issue compatibility #245

bashayerAlsalman opened this issue Sep 16, 2021 · 3 comments

Comments

@bashayerAlsalman
Copy link

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.

@nandita121189
Copy link

@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.

@nandita121189
Copy link

@bashayerAlsalman did it work for u in angular 6?

@bashayerAlsalman
Copy link
Author

@nandita121189 apologize for the late replay, I used primeng/dragdrop instead.

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