ngx-smart-modal v7.2.0 not working
See original GitHub issueI’m submitting a … (check one with “x”)
[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior The web browser console throws:
Uncaught Error: Can't resolve all parameters for NgxSmartModalService: (?, ?, ?, ?, ?).
at syntaxError (compiler.js:2175)
at CompileMetadataResolver._getDependenciesMetadata (compiler.js:20399)
at CompileMetadataResolver._getTypeMetadata (compiler.js:20294)
at CompileMetadataResolver._getInjectableTypeMetadata (compiler.js:20512)
at CompileMetadataResolver.getProviderMetadata (compiler.js:20521)
at compiler.js:20459
at Array.forEach (<anonymous>)
at CompileMetadataResolver._getProvidersMetadata (compiler.js:20419)
at compiler.js:20050
at Array.forEach (<anonymous>)
Expected behavior
Load the default new Angular project including NgxSmartModalModule
without errors.
Reproduction of the problem
I created a new Angular project without routing option, then ran ng serve -o
so I can make sure the project is running which is what happened.
Finally, I edited app.module.ts:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgxSmartModalModule } from 'ngx-smart-modal';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxSmartModalModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Then the app broke.
What is the motivation / use case for changing the behavior?
I tried to use it in my project and I did not find any solution so I decided to try this versión with a new clean project.
Please tell us about your environment:
Windows 10. NPM 6.9.0. NodeJS 10.16.0
- Smart Modal version: 0.8.x
7.2.0
- Angular version: 2.0.x
7.3.9 and 8.3.6
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
all
- Language: [all | TypeScript X.X | ES6/7 | ES5] all
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ngx-smart-modal v7.2.0 not working · Issue #233 - GitHub
Load the default new Angular project including NgxSmartModalModule without errors. ... I created a new Angular project without routing option, ...
Read more >angular6 - ngx-smart-modal - Angular 6 - Stack Overflow
For ngx-smart-modal v7.1.0, I simply added the .css or .scss (.scss in my case since that is the default file extension I have...
Read more >ngx-smart-modal - npm
Smart modal handler to manage modals and data everywhere in Angular apps.. Latest version: 7.4.1, last published: 3 years ago.
Read more >ngx-smart-modal - UNPKG
The CDN for ngx-smart-modal. ... The same as the hideDelay variable defined in ngx-smart-modal.component.ts. 12, $transition-duration: 500ms !default;.
Read more >Ngx-smart-modal - npm.io
ngx -smart-modal v7.4.1 ; Weekly downloads. 9,919 ; License. MIT ; Repository. github ; Last release. 2 years ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m so sorry for the inconvenience, however we’ve tested it so many times before releasing. I’m working now on an emergency patch release. I’ll let you all know when it is available. Regards 🖖
EDIT: In order to avoid other users to get similar error as you got, I had to unpublish
v7.2.0
. Anynpm install / update / upgrade
will keep thengx-smart-modal
version unchanged in theirpackage.json
/node_modules
.Again, I apologize for this bad release and I want to thank you for your trust. ☺️
Hi all! The
v7.2.1
has just been released and fixes the issue (#234)! 🎉 I would like to thank you all for reporting us this error and please forgive us for this bad release! Thank you very much for your support! 🙏☺️❤️Have a nice day, Best regards! 🖖