cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to save edited component.

Former Member
0 Likes
1,102

Hi!

When I tried to save edited component via smartedit I see following error:

thirdparties.js:283 TypeError: t.replace is not a function
    at smarteditcontainer.js:formatted:913
    at smarteditcontainer.js:formatted:4570
    at Array.forEach (<anonymous>)
    at D.sanitizePayload (smarteditcontainer.js:formatted:4560)
    at D.onSubmit (smarteditcontainer.js:formatted:4590)
    at D.submit (smarteditcontainer.js:formatted:4610)
    at Object.<anonymous> (smarteditcontainer.js:formatted:5043)
    at ModalController.onSave (cmssmarteditContainer.js:1)
    at ModalController.<anonymous> (cmssmarteditContainer.js:1)
    at ModalManager._buttonPressed (smarteditcontainer.js:formatted:2902)

What does the error mean? How to solve it?

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Likes

Please delete node_modules folder from all extensions (e.g. cmssmartedit, smartedit, personalizationsmartedit, backoffice, npmancillary; wherever you find) and then execute ant clean all.

If you are using Windows and the issue still persists, open the Command Prompt in Run as administrator mode and execute the ant npminstall and ant clean all commands from hybris/bin/platform directory.

If none of the above works, please check if you have npm and/or nodejs set as PATH environment variable in your system. If yes, please remove them.

Former Member
0 Likes

There are no errors when I tried to add and edit Paragraph component but issue still exist when I tried to edit custom component which extends SimpleCMSComponent. Maybe I have to fix converter to properly define attributes of the component.

Answers (1)

Answers (1)

Former Member
0 Likes

Does the plain list editor exists in smartedit? Like in backoffice used for List<String> fields.