Single-spa not working on browser Chrome and Edge, but it works on Firefox browser - single-spa

I do practice Single-spa based on the blog. https://lazypandatech.com/blog/Microfrontend/10/Create-Microfrontend-Application-using-Single-SPA-framework.
the problem is the application loading of single-spa only works well on Firefox. but it has issue on Chrome and Edge with below Error:
*load.js:96 ==>single-spa minified message #37: See https://single-spa.js.org/error/?code=37&arg=application&arg=single-spa&arg={"NOT_LOADED":"NOT_LOADED","LOADING_SOURCE_CODE":"LOADING_SOURCE_CODE","NOT_BOOTSTRAPPED":"NOT_BOOTSTRAPPED","BOOTSTRAPPING":"BOOTSTRAPPING","NOT_MOUNTED":"NOT_MOUNTED","MOUNTING":"MOUNTING","MOUNTED":"MOUNTED","UPDATING":"UPDATING","UNMOUNTING":"UNMOUNTING","LOAD_ERROR":"LOAD_ERROR","SKIP_BECAUSE_BROKEN":"SKIP_BECAUSE_BROKEN"} Module
zone.js:209 ==> Uncaught Error: application 'single-spa' died in status LOADING_SOURCE_CODE: undefined
Main.js:1 ==> Failed to load resource: net::ERR_CONNECTION_REFUSED*
How to enable it and can be view on Chrome and Edge? Does any security issue on chrome & edge on handling the single-spa js files?

Related

I'm getting an 'RDFa is not defined' error

I'm trying to run a MERN app and I'm getting the following error:
Uncaught ReferenceError: RDFa is not defined
The file referenced as the source of the error is VM216 content.js:
extract # VM216 content.js:165
(anonymous) # VM216 content.js:450
I can see the VM216 content.js file in the Chrome debugger but I could not find it in the filesystem. I searched for RFDa online and discovered they are techniques to help search engines understand web content using semantic web structures. I believe these are Chrome-specific errors because I don't see them in the Firefox debugger.
I'm using Chrome version 101.0.4951.41 (Official Build) (64-bit)

flutter devtools websocket exception websocket connection failed

I am trying to use flutter devtools using android issue. I have valid url: http://127.0.0.1:9200/13hh2pxQQ-Q=/ generated through android studio itself while running the program. Still, whenever i tried to connect to devtools , i get the error as specified in the image.

Console not showing error

Google chrome has stopped showing all the JavaScript exceptions
I have tired
To reset under the the dev tool under (setting > restore default and reload)
Reset chrome
Deleted AppData\Local\Google and reinstall Chrome
Not too sure what to do !
Version 65.0.3325.181 (Official Build) (64-bit)
Error is thrown from: Angular.js file

I've installed Karma, now what?

I've installed and implemented Karma in my project, but I'm not sure where to go from here.
I have one a very simple jasmine spec just to test Karma:
describe 'A suite', ->
it 'contains spec with an expectation', ->
expect(true).toBe true
However, where do I go from here?
Here's how it looks when I visit it in a browser:
Where is my jasmine spec?
Here's how my console looks:
rake karma:start
INFO [karma]: Karma v0.12.28 server started at http://localhost:9876/_karma_/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Linux)]: Connected on socket FNsNSoQPPqyGCqhqIduv with id 80517079
PhantomJS 1.9.8 (Linux) LOG: 'WARNING: Tried to load angular more than once.'
PhantomJS 1.9.8 (Linux) ERROR
TypeError: 'undefined' is not a function (evaluating 'window.angular.$$csp()')
at /var/lib/gems/1.9.1/gems/rails-assets-angular-1.3.8/app/assets/javascripts/angular/angular.js:26070
INFO [Chrome 39.0.2171 (Linux)]: Connected on socket HbXSzzvaLb-tMVMNIduw with id manual-2655
PhantomJS 1.9.8 (Linux) LOG: 'WARNING: Tried to load angular more than once.'
PhantomJS 1.9.8 (Linux) ERROR
TypeError: 'undefined' is not a function (evaluating 'window.angular.$$csp()')
at /var/lib/gems/1.9.1/gems/rails-assets-angular-1.3.8/app/assets/javascripts/angular/angular.js:26070
Chrome 39.0.2171 (Linux) LOG: 'WARNING: Tried to load angular more than once.'
Chrome 39.0.2171 (Linux) ERROR
Uncaught TypeError: undefined is not a function
at /var/lib/gems/1.9.1/gems/rails-assets-angular-1.3.8/app/assets/javascripts/angular/angular.js:26070
Again, not a hint of my spec
Are these error messages causing a problem?
Chrome 39.0.2171 (Linux) LOG: 'WARNING: Tried to load angular more than once.'
Chrome 39.0.2171 (Linux) ERROR
Uncaught TypeError: undefined is not a function
at /var/lib/gems/1.9.1/gems/rails-assets-angular-1.3.8/app/assets/javascripts/angular/angular.js:26070
Sorry if this is vague, but I have no idea what should happen. I'm expecting when I visit localhost:9876/_karma_/ for all my jasmine spec(s) to show. I'm expecting similiar output in the console from PhantomJS but nothing is happening! I've got nothing to go on.
Any help greatly appreciated (Definitely be awarding a bounty) on how I display my spec(s)!
Loading angular twice is definitely the issue here. If you have used ...**/angular.js in the files element of the karma config file, I bet there are multiple angular.js files in your project, was the case for me.... You can inspect the karma page and find the sources to see what files were loaded. Good luck!
Yeah, you have to fix an issue. Do you use coffescript processor?
You can clone https://github.com/yearofmoo/angularjs-seed-repo repo to look at proper config for Karma and Protractor test cases.
Also, you can select one of neat reporter instead of process. Look at npm repository
From what I gather, if you only require karma unit testing (not end to end) then you can remove the ng-scenario framework from the karma configuration and it should be possible to run
rake karma:start
Admittedly this doesn't solve the problem entirely but it might get you going if you are stuck.

BlackBerry Android Runtime ADB failed

I try to Packaging project with Android Runtime For BlackBerry I done every thing
-Simulator, ADT- for eclipse .. when i test the app i got this error :
[2013-04-13 13:16:04 - BlackBerryTest] Packaging project BlackBerryTest
[2013-04-13 13:16:11 - BlackBerryTest] Launching BlackBerry Android Runtime...
[2013-04-13 13:16:20 - BlackBerryTest] Connecting to ADB...
[2013-04-13 13:17:23 - BlackBerryTest] Status ERROR: net.rim.ajde code=4 Connecting 192.168.72.128 to ADB failed! null children=[Status ERROR: net.rim.ajde code=0 Please check if the Android player was fully started when you got this error. If not, you can either increase the Android player launch timeout on the BlackBerry->BlackBerry Android Development Tools preference page or wait until the Android player is fully started and try again. null]
in the Simulator there is splash screen contain blackberry 10 logo start about 2 sec and then close and eclipse still Connecting to ADB... about a minute then I got error to connect.
**
UPDATE :
**
Now I got this message
04-25 12:01:15.539: I/navigatorshell(17789061): no app URI, just launch AP and exit
Any Idea ?
This is usually caused by the Android Runtime taking a very long time to load, and in some cases, never actually loading.
The root cause is that the simulator is running very slowly. If you haven't already, enable virtualisation in your BIOS, this makes a massive difference to simulator performance and solved this issue for me.
There's a video about this here: http://devblog.blackberry.com/2012/08/performance-increase-blackberry-10-simulator/