Good day,
I'm currently following a tutorial but encountering some challenges with integrating Vaadin and Angularjs2 into my Joomla Backend project. The error message I am facing is as follows:
polymer-micro.html:196 Uncaught TypeError: Cannot read property 'instanceCount' of undefined
at HTMLStyleElement.createdCallback (polymer-micro.html:196) createdCallback @ polymer-micro.html:196
polymer-micro.html:118 Uncaught TypeError: Cannot read property '_makeReady' of undefined
at polymer-micro.html:118 (anonymous) @ polymer-micro.html:118 index.php?option=com_stackcommerce:57
ZoneAwareError {stack: "(SystemJS) Cannot read property 'useShadow' of und… nts/com_stackcommerce/assets/dist/dev/app/main.js", message: "(SystemJS) Cannot read property 'useShadow' of und… nts/com_stackcommerce/assets/dist/dev/app/main.js", originalStack: "Error: (SystemJS) Cannot read property 'useShadow'…/assets/node_modules/zone.js/dist/zone.js:349:25)", zoneAwareStack: "Error: (SystemJS) Cannot read property 'useShadow'… ode_modules/zone.js/dist/zone.js:349:25) [<root>]", name: "Error"…}
(anonymous) @ index.php?option=com_stackcommerce:57 ZoneDelegate.invoke @ zone.js:242 Zone.run @ zone.js:113 (anonymous) @ zone.js:535 ZoneDelegate.invokeTask @ zone.js:275 Zone.runTask @ zone.js:151 drainMicroTaskQueue @ zone.js:433 ZoneTask.invoke @ zone.js:349
The code from my index.php file is provided below:
// No direct access
defined('_JEXEC') or die;
$document = JFactory::getDocument();
$document->setBase(JURI::base());
$document->addScript(JUri::root() . 'administrator/components/com_stackcommerce/assets/bower_components/webcomponentsjs/webcomponents.min.js');
$document->addScript(JUri::root() . 'administrator/components/com_stackcommerce/assets/node_modules/core-js/client/shim.min.js');
$document->addScriptDeclaration("window.Polymer = {dom: 'shadow'};");
$document->addScript(JUri::root() . 'administrator/components/com_stackcommerce/assets/node_modules/zone.js/dist/zone.js');
$document->addScript(JUri::root() . 'administrator/components/com_stackcommerce/assets/node_modules/reflect-metadata/Reflect.js');
...
...
Here's a glimpse of my systemjs.conf.js file for further reference:
(function(global) {
var paths = {
'npm:': 'components/com_stackcommerce/assets/node_modules/'
};
var map = {
app: 'components/com_stackcommerce/assets/dist/dev/app',
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
...
...
I would greatly appreciate any insights or suggestions on how to resolve the error I'm currently facing within my browser while running the application.