Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1910 Prikazi

i am getting an error while trying to open the editor,

web.assets_frontend_lazy.min.js:3433 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'forEach')
destroy: function() {
            var self = this;
            this.__edispatcherRegisteredEvents.forEach((event)=>{

^ thats the error part. 

My js code structure , 

import publicWidget from "@web/legacy/js/public/public_widget"
publicWidget.registry.DynamicProdImage = publicWidget.Widget.extend
init, start, destroy
export default publicWidget.registry.DynamicProdImage
Avatar
Opusti
Best Answer
Try to replace this line : 
            this.__edispatcherRegisteredEvents.forEach((event)=>{
with this line :
            this.__edispatcherRegisteredEvents.forEach(function(event){
Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 24
4300
2
apr. 24
1853
3
mar. 24
5572
2
jul. 25
2289
1
mar. 24
3286