I have created an Angular component in which I am importing rxjs do operator.
But getting error cant resolve.
ERROR in ./src/app/Members/member-messages/member-messages.component.ts
Module not found: Error: Can't resolve 'rxjs/add/operator/do' in 'C:\Demo\DatingApDemo\DatingApp\src\app\Members\member-messages'
What is the solution for this?
Thank you,
Sharayu
Finally, I am able to solve that issue.
do() is replaced by tap().
for reference https://www.academind.com/learn/javascript/rxjs-6-what-changed/
and
tap() should be inside .pipe().
like this, .pipe(tap())
for more reference, you can refer this link,
https://alligator.io/angular/angular-6/
and
https://www.learnrxjs.io/operators/utility/do.html
Related
I am getting this error when run the polymer application. So, How to resolve this issue
"Cannot use import statement outside a module".
If anyone know the answer please help to resolve this issue.
Demo : https://stackblitz.com/edit/polymer-3-template-nw9tmy?file=index.html,custom-element.js,index.js
I've got a Domain Driven Design solution and for some reason, I'm getting this exception at RunTime when the API call is made through GateWay:
One or more errors occurred. (Method not found: 'Void FluentValidation.AbstractValidator`1.When(System.Func`2<!0,Boolean>, System.Action)'.)
The error occurs as below:
I have solution like this:
The main 4 project I'm focusing on right now are:
Core.Model
Account.Api
Service.Api.Gateway
Web.ClientSite
Web.ClientSite makes request to Service.Api.Gateway which then calls Account.Api.
Note that Core.Model is referenced everywhere
VERY IMPORTANT: If I remove the reference of FluentValidation from Core.Model, the exception disappears.
I'm hoping these information is enough. Why do you think I'm getting this exception and how can I eliminate.
Looks like some of libs (ocelot) are incompatible with new changes in FluentValidation 8.1.2. Try to downgrade to FluentValidation before 8.1.2. Hope it helps
I got similar exception:
System.MissingMethodException : Method not found:
'FluentValidation.AssemblyScanner
FluentValidation.AssemblyScanner.FindValidatorsInAssembly(System.Reflection.Assembly)'
In my case I needed to upgrade the ediatR.Extensions.Microsoft.DependencyInjection and MediatR.Extensions.FluentValidation.AspNetCore packages as well to fix the issue.
I'm with a specific problem using primefaces, as you know filters on primefaces may use the option contains on filterMatchMode 'filterMatchMode="contains"', but when I trigger the action I'm getting this error: ERROR TypeError: filter.toLowerCase is not a function.
This errors occurs because is not possible use tolowercase with arrays as you can see.
Does anyone got this error or know how to solve?
Thanks
I am getting the following error while trying to upload a file
java.lang.Nosuchmethoderror
Org.apache.commons.fileupload.Fileupload.Setsizemax
Does anybody have a solution regarding this?
According to the error the method Org.apache.commons.fileupload.Fileupload.Setsizemax does not exist.
You can find an example about how to set the maximum file size in Struts 1.x on SO here.
I am getting compiler error:
Error 1180: Call to a possibly undefined method when all imports are ok and all method definitions are ok in IntelliJ, double checked?
What could it be?
I had the same trouble, but solution was very easy. One of my package in project was with name "notification" and it had conflict with standart package name, so i had changed name to "notificationS" and compilier had began work without erros.
The thing is if you did some refactoring on the class that you are getting the error, you have to go to menu:
Build > Rebuild Project
If you just do debug or run, it doesnt work for some reason.
I am not sure if the reason is simple refactoring or some git merge, but solution is here.