Angular Module Federation issue in different Repo - webpack-5

Currently, I am working on an architect set-up for a project using Module Federation. I am able to connect different ports under the same package.json. However, I am failing to use each project as a separate application.
Code Base: https://github.com/Giridharan-k/FullStackCodePractice
How to connect projects from different Repo?
Getting Below Error:
module federation SyntaxError: Unexpected token 'export'
webpack-dev-server] Live Reloading enabled.
remoteEntry.js:4873 Uncaught SyntaxError: Unexpected token 'export'
core.mjs:6476 ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'init')
TypeError: Cannot read properties of undefined (reading 'init')
at angular-architects-module-federation-runtime.js:26:1
at Generator.next ()
at fulfilled (tslib.es6.js:73:43)
at ZoneDelegate.invoke (zone.js:372:1)
at Object.onInvoke (core.mjs:25483:33)
at ZoneDelegate.invoke (zone.js:371:1)
at Zone.run (zone.js:134:1)
at zone.js:1276:1
................

Related

Uncaught (in promise) Error: QWeb2: Template 'Dialog' not found

When I'm trying to run Odoo apps on Odoo 13, then Odoo UI is not working correctly and I'm facing the following error in the browser console.
Uncaught (in promise) Error: QWeb2: Template 'Dialog' not found
snapshot is attached below:
Uncaught (in promise) Error: QWeb2: Template 'Dialog' not found
Please helpout, how to resolve this error.

Error when service provider imports metadata from wso2IS 5.3.0

We are working with a service provider and they are having issues importing the metadata we exported from wso2. The error that they are seeing trying to import the metadata that was exported from wso2.
"Unexpected error during metadata import, likely caused by invalid XML: Invalid XML - errors: [error: cvc-complex-type.2.4a: Expected element 'AttributeService#urn:oasis:names:tc:SAML:2.0:metadata' instead of 'NameIDFormat#urn:oasis:names:tc:SAML:2.0:metadata' here in element AttributeAuthorityDescriptor#urn:oasis:names:tc:SAML:2.0:metadata, error: cvc-complex-type.2.4a: Expected element 'AttributeService#urn:oasis:names:tc:SAML:2.0:metadata' instead of 'NameIDFormat#urn:oasis:names:tc:SAML:2.0:metadata' here in element AttributeAuthorityDescriptor#urn:oasis:names:tc:SAML:2.0:metadata, error: cvc-complex-type.2.4c: Expected element 'AttributeService#urn:oasis:names:tc:SAML:2.0:metadata' before the end of the content in element AttributeAuthorityDescriptor#urn:oasis:names:tc:SAML:2.0:metadata
They are saying it is a configuration problem on our end but we many other working Service providers.
Edit adding metadata:
https://idp-dev.westga.edu/authenticationendpoint/idp-dev-metadata.xml

reactjs error - AJAX Failed: SyntaxError: Unexpected token < in JSON at position 0

I get the following error on the console for running the reactjs application.
AJAX Failed: SyntaxError: Unexpected token < in JSON at position 0
on the developer tools console window. I got the following error.
search-e3e9d0f9da88f042e3cb.js:446 Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering.
Instead, figure out why the markup being generated is different on the
client or server:
(client) " data-reactid="18">Medium</div><button
(server) " data-reactid="18">Large</div><button s
It is wagtail application(it is like Django-cms), in which react module is called inside the wagtail application. The development environment is Ubuntu on aws.
Please help me in resolving this issue. I am not able to find the origin of the error.
It looks like your JSON is not valid, try jsonlint.com

Error Occurred [object Object] facebook Open Graph

i have some trouble here...
i've just setup a facebook opengraph api on my website, it works well when i using my facebook account but i get an error message when i test it using my another account...
i get Error Occurred [object Object] when try to access http://www.kiosban.com/jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/ , and when i try to look over my GoogleChrome console i get this error
Uncaught ReferenceError: jQuery is not defined /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1115
Uncaught ReferenceError: $ is not defined /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1716
Uncaught SyntaxError: Unexpected token < index.php:1
Please specify a ShareThis Publisher Key
For help, contact support#sharethis.com buttons.js:1
Unknown RPC service: undefined apis.google.com/_/apps-static/_/js/gapi/plusone/rt=j/ver=l9xafNDlycA.en_US./sv=1/am=!PemfnfjrL2yI81ARQg/d=1/rs=AItRSTPblCJvoWHsMeVNOsKiKGakP1copQ/cb=gapi.loaded_0:206
Unknown RPC service: undefined apis.google.com/_/apps-static/_/js/gapi/plusone/rt=j/ver=l9xafNDlycA.en_US./sv=1/am=!PemfnfjrL2yI81ARQg/d=1/rs=AItRSTPblCJvoWHsMeVNOsKiKGakP1copQ/cb=gapi.loaded_0:206
Unsafe JavaScript attempt to access frame with URL http://www.kiosban.com/jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/ from frame with URL http://www.facebook.com/plugins/login.php?add_to_profile=false&api_key=384945498218921&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D6%23cb%3Df1382a12d%26origin%3Dhttp%253A%252F%252Fwww.kiosban.com%252Ff4bed3cb%26domain%3Dwww.kiosban.com%26relation%3Dparent.parent&extended_social_context=false&locale=en_US&login_text=&max_rows=1&one_click=false&sdk=joey&show_faces=true&show_login_face=false&size=small&tense=past&width=200. Domains, protocols and ports must match.
zYYvIvm5_Za.js:89
g.categories.(anonymous function).(anonymous function) zYYvIvm5_Za.js:89
(anonymous function) BOwYwRudgQC.js:5
n _xZSy89IRtb.js:22
h.inform _xZSy89IRtb.js:25
v zYYvIvm5_Za.js:27
p
any idea about my problem??
Uncaught ReferenceError: jQuery is not defined /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1115
Uncaught ReferenceError: $ is not defined /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1716
these are because jQuery hasn't loaded correctly, or you are trying to use a jQuery dependent method or selection without jQuery being defined. Make sure you check in what order things are being loaded.
"Please specify a ShareThis Publisher Key
For help, contact support#sharethis.com"
I came cross with this error before as well. please check whether you define
<script type="text/javascript"> stLight.options({ publisher: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }); </script>
Use your actual publisher key in "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
After I inserted this into my code, The error gone away.

Uncaught OAuthException FaceBook PHP SDK

I copied the whole of the example.php in the Facebook php sdk at the exmaples folder to another php file and i got this error:
Fatal error: Uncaught OAuthException: Invalid OAuth access token signature. thrown in C:\wamp\www\facebook-php-sdk-4ea94b9\src\base_facebook.php on line 1039 .
When i comment this line: $naitik = $facebook->api('/naitik'); . Everything seems to be quite fine except this error: Notice: Undefined variable: naitik in C:\wamp\www\facebook-php-sdk-4ea94b9\examples\newExample.php on line 100 . Which is expected. What could be the problem?
You probably are not following the authentication process correctly. Ensure your app id and secret key are correct. Make sure you're running your app from the domain you specified in your app settings on facebook.