ngx-smart-modal icon indicating copy to clipboard operation
ngx-smart-modal copied to clipboard

unfortunately, component is not working with angular 10+ and i'm waiting for the update to be able upgrade to angular 11.

Open FahimeRiahi opened this issue 4 years ago • 7 comments

unfortunately, component is not working with angular 10+ and i'm waiting for the update to be able upgrade to angular 11

FahimeRiahi avatar Dec 01 '20 14:12 FahimeRiahi

Before including this lib to my project I decided to check compatibility with ng 10 and it works fine... anyway inside stackblitz-sandbox.

vladlen-volkov avatar Jan 04 '21 11:01 vladlen-volkov

I am getting error with angular 11 and "ngx-smart-modal": "^7.4.1" during ng build:

Compiling TypeScript sources through NGC
ERROR: projects/ui-lib/node_modules/ngx-smart-modal/src/modules/ngx-smart-modal.module.d.ts:8:23 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

8     static forRoot(): ModuleWithProviders;

sodik82 avatar Jan 22 '21 12:01 sodik82

I am getting error with angular 11 and "ngx-smart-modal": "^7.4.1" during ng build:

Compiling TypeScript sources through NGC
ERROR: projects/ui-lib/node_modules/ngx-smart-modal/src/modules/ngx-smart-modal.module.d.ts:8:23 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

8     static forRoot(): ModuleWithProviders;

Hello, we had same error because our postinstall hook failed in deployment pipeline. This command contained ngcc. So first I suggest you to check if you use ngcc correctly (https://indepth.dev/posts/1259/angular-compatability-compiler) and it's running without warning in you environment (https://stackoverflow.com/questions/18136746/npm-install-failed-with-cannot-run-in-wd). Now using Angular 11.1.1 and it works fine after update and ngcc fix.

robertsine avatar Feb 17 '21 14:02 robertsine

A dedicated version for Angular v10/v11 will be released, so I'm adding this issue to the next major release. Thank you all for your comments.

🖖

maximelafarie avatar Feb 18 '21 09:02 maximelafarie

Of course a fully compatible v11 version is desired, but I have been using the package as is under v11 and have not encountered any problems at all.

vibonacci avatar Mar 10 '21 21:03 vibonacci

Hi guys! Any new about this?

ricardosobrado avatar Apr 25 '21 15:04 ricardosobrado

Is this issue still available

Tweniee avatar Nov 28 '23 03:11 Tweniee