shopware - Overidding a js plugin - Stack Overflow

when following the Shopware guide .htmlconst PluginManager = window.PluginManagerconst Plugin = Plugi

when following the Shopware guide .html

const PluginManager = window.PluginManager
const Plugin = PluginManager.getPlugin('CookiePermission')
const PluginClass = Plugin.get('class')

export default class MyCookiePermission extends PluginClass {

}

it return the following error :

enter image description here.

worth mention that direct imports with path work. but i cant use them as the project will be loaded trough composer.

override the main plugin to be able to extend its functionality using the Plugin manager method

const PluginManager = window.PluginManager
const Plugin = PluginManager.getPlugin('CookiePermission')
const PluginClass = Plugin.get('class')

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744102551a4558597.html

相关推荐

  • shopware - Overidding a js plugin - Stack Overflow

    when following the Shopware guide .htmlconst PluginManager = window.PluginManagerconst Plugin = Plugi

    9天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信