Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Extension SwagCmsExtensions 2.2.0 is not compatible with development template #166

Open
timotrautmann opened this issue Sep 7, 2021 · 0 comments

Comments

@timotrautmann
Copy link

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 = {

            ...(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

| const rule = this.block.extensions.swagCmsExtensionsBlockRule;

|

            return Feature.isActive('FEATURE_SWAGCMSEXTENSIONS_8') && (rule?.inverted || !!rule?.visibilityRuleId);

| },

|

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() {

                return this.field?.translated?.config?.default ?? this.field?.config?.default ?? false;

| },

| },

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() {

                return this.field?.translated?.config?.rows ?? this.field?.config?.rows ?? 5;

| },

| },

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() {

                return this.field?.translated?.config?.min ?? this.field?.config?.min;

| },

| },

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() {

                return this.field?.translated?.config?.options ?? this.field?.config?.options;

| },

| },

How to reproduce

Install development Template with Shopware 6.4.3.0, install Extension SwagCmsExtensions 2.2.0 and run psh.phar administration:build

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant