maximelafarie / ngx-smart-modal

Modal/Dialog component crafted for Angular (Ivy-compatible)
https://maximelafarie.com/ngx-smart-modal/
MIT License
325 stars 85 forks source link

Extending modal.service #384

Open asgarihope opened 9 months ago

asgarihope commented 9 months ago

Hi, First, Thank you for the useful package ...

I need a service that has extended NgxSmartModalService so drop my code in the below:

export class MainModalService extends NgxSmartModalService {
    constructor(
        _appRef: ApplicationRef,
        _injector: Injector,
        _modalStack: NgxSmartModalStackService,
        applicationRef: ApplicationRef,
        @Inject(DOCUMENT) _document: any,
        @Inject(PLATFORM_ID) _platformId: any) {
        super(_appRef, _injector, _modalStack, applicationRef, _document, _platformId);
   } 

and this error occurred on the run timing of my application:

Application bundle generation complete. [7.287 seconds]
Watch mode enabled. Watching for file changes...
An unhandled exception occurred: Missing "./lib/services/ngx-smart-modal-stack.service" specifier in "ngx-smart-m
odal" package
See "C:\Users\{USER}\AppData\Local\Temp\ng-9uFxuI\angular-errors.log" for further details.

Would you happen to have any idea that would help me also make my Application happy?