コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1425 ビュー

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
アバター
破棄
最善の回答
Try to replace this line : 
            this.__edispatcherRegisteredEvents.forEach((event)=>{
with this line :
            this.__edispatcherRegisteredEvents.forEach(function(event){
アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 24
3502
2
4月 24
1226
3
3月 24
4815
1
12月 24
1321
1
3月 24
2935