When building the administration with the installed and active plugin SwagCmsExtensions (2.2.0) the following error occurred and the build is not succesful:
ERROR in /private/.../custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/component/sw-cms-detail/feature/form-builder/state.js 109:37
Module parse failed: Unexpected token (109:37)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| field.config = {
...(field.translated?.config ?? {}),
| [property]: value,
| };
ERROR in /private/.../custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/component/sw-cms-sidebar/sw-cms-sidebar-nav-element/index.js 18:80
Module parse failed: Unexpected token (18:80)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-checkbox/index.js 23:38
Module parse failed: Unexpected token (23:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-textarea/index.js 23:38
Module parse failed: Unexpected token (23:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-number/index.js 24:38
Module parse failed: Unexpected token (24:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-select/index.js 34:38
Module parse failed: Unexpected token (34:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
PHP Version
7.4
Shopware Version
6.4.3.0
Expected behaviour
psh.phar administration:build runs without errors
Actual behaviour
When building the administration with the installed and active plugin SwagCmsExtensions (2.2.0) the following error occurred and the build is not succesful:
ERROR in /private/.../custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/component/sw-cms-detail/feature/form-builder/state.js 109:37
Module parse failed: Unexpected token (109:37)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| field.config = {
| [property]: value,
| };
ERROR in /private/.../custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/component/sw-cms-sidebar/sw-cms-sidebar-nav-element/index.js 18:80
Module parse failed: Unexpected token (18:80)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const rule = this.block.extensions.swagCmsExtensionsBlockRule;
|
| },
|
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-checkbox/index.js 23:38
Module parse failed: Unexpected token (23:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| get() {
| },
| },
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-textarea/index.js 23:38
Module parse failed: Unexpected token (23:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| get() {
| },
| },
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-number/index.js 24:38
Module parse failed: Unexpected token (24:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| get() {
| },
| },
ERROR in /private/.../htdocs/custom/plugins/SwagCmsExtensions/src/Resources/app/administration/src/extension/module/sw-cms/elements/custom-form/component/swag-cms-extensions-form-editor/swag-cms-extensions-form-editor-settings/field-types/swag-cms-extensions-form-editor-settings-field-type-select/index.js 34:38
Module parse failed: Unexpected token (34:38)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| get() {
| },
| },
How to reproduce
Install development Template with Shopware 6.4.3.0, install Extension SwagCmsExtensions 2.2.0 and run psh.phar administration:build