du musst in der Console ./psh.phar adminstration:build ausführen, danach wird die js im public Verzeichnis neu erzeugt.
Du kannst im Rule Builder die Lunar Eclipse Rule ausführen und auch Ja / Nein als Bedingung auswählen? Spannend. Ich habe die custom rule installiert und bekomme mit der 6.1 sowie 6.2 einen JS Fehler.
… Ich habe die custom rule installiert und bekomme mit der 6.1 sowie 6.2 einen JS Fehler.
Ich bekomme auch den JS-Fehler. Da ich aber die Rule für Customer Tag haben möchte, habe ich die bestehende Rule für LineItemTag angeschaut und QuellCode zum testen übernommen - und es funktioniert alles einwandrei in Admin
WARNING in /var/www/html/custom/plugins/SwagRule/src/Resources/app/administration/src/decorator/rule-condition-service-decoration.js 1:88-99
"export 'Application' was not found in 'src/core/shopware'
WARNING in /var/www/html/custom/plugins/SwagRule/src/Resources/app/administration/src/core/component/swag-lunar-eclipse/index.js 1:1072-1081
"export 'Component' was not found in 'src/core/shopware'
ERROR in
/var/www/html/custom/plugins/SwagRule/src/Resources/app/administration/src/core/component/swag-lunar-eclipse/index.js
1:27 error You can't use imports directly from the Shopware Core via "src/core/shopware". Use the global Shopware object directly instead (https://developer.shopware.com/docs/guides/plugins/plugins/administration/the-shopware-object) plugin-rules/no-src-imports
/var/www/html/custom/plugins/SwagRule/src/Resources/app/administration/src/decorator/rule-condition-service-decoration.js
1:29 error You can't use imports directly from the Shopware Core via "src/core/shopware". Use the global Shopware object directly instead (https://developer.shopware.com/docs/guides/plugins/plugins/administration/the-shopware-object) plugin-rules/no-src-imports
✖ 2 problems (2 errors, 0 warnings)
Momentan scheint das Plugin aber so auch wieder nicht mehr zu funktionieren …
import { Component } from ‚src/core/shopware‘;
import Application from ‚src/core/shopware‘;
PS: in github dauert es ja ab und an etwas länger bis Änderungen zugelassen werden, deshalb doku hier im Thread der bei google als Treffer fürs Problem gelistet ist.