How to resolve polymer import issue - polymer

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

Related

__init__() got an unexpected keyword argument 'caption_file'

I am trying to run a code on Kaggle as a practice. But got the following error and don't know why:
Can anyone help me how to solve this issue?

Adding "ant-design-pro": "^2.3.2" and including it in project resulting in error

I'm getting the below error when I try to import "ant-design-pro": "^2.3.2" and use it in my ShadowCLJS project.
The required JS dependency "./factoryWithThrowingShims" is not available, it was required by "node_modules/bizcharts/umd/BizCharts.js".
Confirmed that after removing the dependency and referece of ant-design-pro gets my app up and running properly.
Any help would be highly appreciated.

What is the cause of FluentValidation Method Not Found exception?

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.

Can't resolve 'rxjs/add/operator/do'

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

AS3 Error 1180 Call to a possibly undefined method in IntelliJ

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.