[Solved] ReferenceError: KeyboardEvent is not defined

[Solved] ReferenceError: KeyboardEvent is not defined This error happens due to lot of reasons. In my case I was getting this error while making my angular site to angular universal site for server side rendering and better SEO. But when I was trying to convert to angular universal┬áI got this “ReferenceError: KeyboardEvent is not defined ” issue. In my case

182 total views, 2 views today

» Read more

[Solved] ERROR Error: No value accessor for form control with unspecified name attribute

[Solved] ERROR Error: No value accessor for form control with unspecified name attribute   This issue will occur due to lot of reasons, here I am writing my case to help someone, Issue: This issue happened with angular 4 cli + angular material 2 for me. I used mat-radio-button, mat-checkbox in my template page. But I missed to import the

318 total views, no views today

» Read more

[Solved] Cannot read property ‘getSourceFile’ of null

[Solved] Cannot read property ‘getSourceFile’ of null:   This error occurs due to lot of things, I just explained what happened in my case below, hope it helps some people. I generated a component named “store component” in two different places using the below comments by mistake, ng g c store one is under layout folder and other one is

252 total views, no views today

» Read more

[Solved] your global angular cli version is greater than your local version

[Solved] your global angular cli version is greater than your local version Root cause: If you have developed your angular-cli project in some version, say 1.0.3 in some machine and you are trying to build/compile in the other system which is having higher angular-cli version, say 1.4.2 then you will get this warning message “your global angular cli version is

660 total views, 4 views today

» Read more

[Solved] node sass could not find a binding for your current environment windows 64-bit with node.js 6.x

[Solved] node sass could not find a binding for your current environment windows 64-bit with node.js 6.x Root cause: This issue will happen if you have moved your angular cli project from 32bit to 64bit environment. Ensure you are rebuilding the node-sass to resolve this issue.   Command to rebuild: npm rebuild node-sass   Issue Screenshot:     Fixing using

260 total views, 6 views today

» Read more

[Resolved] java.util.LinkedHashMap cannot be cast to org.json.simple.JSONObject

[Resolved] java.util.LinkedHashMap cannot be cast to org.json.simple.JSONObject This issue may happen for various use cases, I have explianed my usecase with the explanation below, hope it helps someone. My JSON string / JSON response sample is: {“itemName”:”Amazon”,”id”:1}   Issue code: for(int i=0;i<selectedStoresJsonArray.size();i++){ JSONObject jsonObj = (JSONObject) selectedStoresJsonArray.get(i); if(null!=jsonObj.get(“itemName”) && !jsonObj.get(“itemName”).toString().isEmpty()){ tempSelectedStores.add(jsonObj.get(“itemName”).toString()); } }   Here JSONObject is not knowing the

293 total views, 5 views today

» Read more

[Resolved] Illegal attempt to dereference path source [null.categoryList] of basic type

[Resolved] Illegal attempt to dereference path source [null.categoryList] of basic type This issue may happen for various use cases, I have explianed my usecase with the explantion, hope it helps someone.   Issue code: Expression catInExp = couponRoot.get(“categoryList”).get(“categoryName”); Predicate categoryInPredicate = catInExp.in(tempCategoryNamesSelected); allPredicates.add(categoryInPredicate);   Code Fixed: Expression catInExp = couponRoot.join(“categoryList”).get(“categoryName”); Predicate categoryInPredicate = catInExp.in(tempCategoryNamesSelected); allPredicates.add(categoryInPredicate);   My Coupon Model: @Entity

298 total views, 4 views today

» Read more

[Resolved] Class Subject incorrectly extends base class Observable

[Resolved] Class Subject incorrectly extends base class Observable:   I was having the rxjs and typescript version in the package.json:   “rxjs”: “^5.4.0”, “typescript”: “^2.4.2”,   Issue screenshot:   I modified the rxjs version to ^5.4.2┬áin package.json and ran npm install and it resolved my issue. After Fixing the Screenshots:   Stackoverflow link 199 total views, 1 views today

199 total views, 1 views today

» Read more

[Resolved] org.hibernate.hql.internal.ast.QuerySyntaxException: store is not mapped

[Resolved] org.hibernate.hql.internal.ast.QuerySyntaxException: store is not mapped I got this exception org.hibernate.hql.internal.ast.QuerySyntaxException: store is not mapped, because store is not my class name it should be Store (S – capital). When we are writing the HQL, it is mandatory to maintain the cases like how it is exactly. I have provided the sample issue and resolved one for your quick reference.

203 total views, 2 views today

» Read more

[Resolved] Cannot find module ‘@angular/animations’

[Resolved] Cannot find module ‘@angular/animations’ When you are using angular material with angular 4 then you will come across this error “Cannot find module ‘@angular/animations’“. In angular 2 when you install angular material angular animations also will be installed and imported from core. but now in angular 4 angular animation is moved to a separate package and angular/core is deprecated.

557 total views, 2 views today

» Read more
1 2 3 11