Having issues while loading the ExtJS based app with google feeds api - javascript

Having issues while loading my app which is based on ExtJS and using Sencha 5.1.3.61. The problem seems to be in this file ext/packages/ux/src/google/Feeds.js.
Getting this error on app launch..
"?file=feeds&v=1.x&output=nocss%3Dtrue&async=2:1 Uncaught Error: Module:'feeds' not found!"
Any solution or work around can be helpful!!

You can try overriding it, like:
Ext.define('Fiddle.ux.google.Feeds', {
override: 'Ext.ux.google.Feeds',
requiresGoogle: {}
});

Issue got resolved by replacing requiresGoogle : {...} with _requiresGoogle : {...}. Thats it.
Source : https://www.sencha.com/forum/showthread.php?334652-Google-Feed-API-deprecated/page2 .

Related

Error: Component selectors can only be used in conjunction with babel-plugin-emotion. while trying to style checkbox with emotion and CRA

I am trying to style a Checkbox with emotion, and i need to apply a style like this :
input[type = 'checkbox'] + .someclass {
....
}
in emotion, based on some googling, i found that you could do something like this :
StyledCheckBox = styled.input`
& + {() => StyledPlaceHolder} {
...
}
`;
But i keep getting an error :
Error: Component selectors can only be used in conjunction with babel-plugin-emotion.
As per the docs, i tried to use macros instead of babel-plugin-emotion but the error persists.
Here is a codesandbox i made mimicing the error :- https://codesandbox.io/s/bold-cache-kg9s9
In the codesandbox preview you will see it as a cross-origin error, but if you open the chrome console you can see the error i mentioned. Furthermore, you can download it and run the code on your local machine to see the error message on the browser. Any help would be greatly appreciated.

Angular.module is not loading in IE 11

My application is trying to load the angular module discApp . This is working without any issues in Chrome . But in IE11 i am getting an error like below
object doesn't support property or method 'module' .
Angular Version is using is v1.5.5. If i try ctrl+F5 its loading correctly . Is there any way to fix this issue?
My Js Code where the error throwing in IE is below .
'use strict';
var discApp = angular.module('discApp', ['discApp.controllers']); //Error in this line
Below is the code where i am adding the angular.js
<script>document.write("<script type='text/javascript'
src='js/angular/angular.js?v=" + Date.now() + "'><\/script>");</script>
Please try to modify your code as below, and check whether it meets the same error?
'use strict';
var discApp = angular.module('discApp', []);
If it still meets the same error, perhaps the issue is related to the angular.js reference, try to use the following script to load angular.js reference:
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.min.js"></script>
If the error disappears, the issue is related to the 'discApp.controllers', you could check it.

JS error on Chrome 57+ for RichFaces application "Cannot read property 'switchToItem' of undefined"

I've a jsp page with tabs. and sometimes an error occurs (when I press a tab) "Cannot read property 'switchToItem' of undefined"
Uncaught TypeError: Cannot read property 'switchToItem' of undefined
at init.__onHeaderClick (packed.js:6102)
at HTMLTableCellElement.<anonymous> (packed.js:1333)
at HTMLTableCellElement.dispatch (jquery.js:846)
at HTMLTableCellElement.eventHandle (jquery.js:722)
as I understand the error happens in packed.js (this is a js-file packed by richfaces of version 4.3.4). I've looked inside this file and found that RichFaces try to find a list of tabs. these tabs are located in property "rf" (element[richfaces.RICH_CONTAINER]), but in moment when I pressed a tab, there was no property.
This bug reproduce in chrome v.57, in version 56 it doesn't reproduce.
Could you help me with some advice, how it can be fixed?
some technical details:
I use xmlns:rich="http://richfaces.org/rich" <rich:tabPanel> tag in my jsp page
in pom.xml <richfaces.version>4.3.4.Final</richfaces.version>
James G, you have a mistake in richfaces.js
richfaces.$$ = function(componentName, element) {
while (element.parentNode) {
var containerId = element.getAttribute(richfaces.RICH_CONTAINER);
if (containerId && containerId !== "" && !!richfaces.COMPONENT_MAP[containerId] && richfaces.COMPONENT_MAP[containerId].component.name == componentName) {
return e.component;
}
else {
element = element.parentNode;
}
}
};
There is no e. You need change it to
...
return richfaces.COMPONENT_MAP[containerId].component;
...
Sorry I don't have the reputation points to make this a comment.
I don't know if google chrome knows about this problem or would be willing to fix it. Our response to this is to patch RichFaces 4.3.7.Final javascript to not use the adhoc dom element property but a global map instead and then deploy our own richfaces jar to our production environment at the end of the month (after testing). I don't have to ability to deploy this to central repo but if you wanted to see the direct changes I made you can see my commits (https://github.com/JamieGHamilton/core). If chrome fixes the problem then this won't be an issue but I'm not counting on that.
So far the changes I made work perfectly in chrome (and other browsers)
Update: I've included the fix found by dennyDarko - thanks for this. My understanding is that the Chrome 58-beta doesn't produce this behavior so for some affected apps, the admins may choose to wait.
This might he an issue of Chrome 57. Try Chrome 58 Beta.
I had the same issue with Richfaces 4.5.17.Final and Chrome 92.
Additionally there was the following log message:
<jsf.non_displayed_message> <WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=null[severity=(ERROR 2), summary=(One or more resources have the target of 'body', but no 'body' component has been defined within the view.), detail=(One or more resources have the target of 'body', but no 'body' component has been defined within the view.)]>
So changing body to h:body in the main XHTML file has resolved the issue.
And h:head contains <h:outputScript name="jsf.js" library="javax.faces"/>

DOJO Error: defineAlreadyDefined

I am using DOJO and JavaScript. The code is working fine with other browser except Chrome. Whenever I am trying to load the page in Chrome, I am getting following error
{ Error: defineAlreadyDefined
at makeError(dojo.js:119)
at async(dojo.js:1911)
at dojo.js:1941
(anonymous) # dojo.js:1862 }
At line number 119 of dojo.js file I have written following code:-
{ makeError = function(error, info){
return mix(new Error(error), {src:"dojoLoader", info:info}); }
},
At line 1911 I have written following code
{ (this.dojoConfig || this.djConfig || this.require || {}, }
What is the issue ? Can anyone solve this ? I am getting only this issue in chrome.In other browser its working absolutely fine.
Thanks in advance. :-) "
Well, When I faced the same error in my project; below are suggestions I followed to track and fix the error-
The main cause of this error if you are using two different which exposes same "define" method.
However if you are loading same library twice in your application in that case also it gives the same error.
This is the simler error raised on GitHub-
https://github.com/odoe/iLikeItHere/issues/1
Hoping above hint will help to track/resolve your issue :)
The issue could be caused by a external libraries which could use isown define function.
Make sure any external libraries which use their own define like requirejs are always added in header before dojo.
Related answer:
Dojo 1.9 build 'multipleDefine' error while loading locale

TypeError: R[o5R.F6s] is not a function in changing states in phaser box2d

i build my game using phaser.2.4.3.min.js and phaser.2.2.2.box2d.min.js
When trying to change states this error is being raised TypeError: R[o5R.F6s] is not a function and i can't seem to figure out the problem
PS : i took The source code of box2d plugin from the example folder in phaser , and i did not purchase the full plugin yet i was just testing it .
is there anyway to fix this issue ?
here is the game code : http://jsfiddle.net/fbdtq1tg/5/
and here where the error is raised :
SetGameOver: function () {
this.game.state.start("TheGame");
}
The error seems clear: the script is trying to execute a function, but this variable isn't a function.
What happens: box2d.m_gravity = box2d.clone(); but R[o5R.F6s]() is the string "clone" and not a function. R = box2d, so the the script is trying to execute a function(R[o5R.F6s](). o5R is an object with a lot of functions in it but the requested F6s is a string("clone").
So, I did some research why box2d.b2world = function(gravity){...this.m_gravity = gravity.Clone();.. } and it seems to be a bug.
Check out following links:
http://www.html5gamedevs.com/topic/13753-changing-states-with-box2d-causes-crash/
https://github.com/photonstorm/phaser/issues/1884

Categories