Issue #4413๐Ÿ’ฌ AnsweredOpened Jun 27, 2022by YaseenHajajweh1 reactions

StyleManager.addProperty , type: 'select' , Cannot read properties of undefined (reading 'replace')

Quick answerby YaseenHajajwehโค 1

@artf , sorry i found the solution

Read full answer below โ†“

Question

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome Version 103.0.5060.53 (Official Build) (x86_64)Reproducible demo link private projectDescribe the bug i am trying to add property to my custom sector , and the property type (Select) , once the builder ready i got this error Cannot read properties of undefined (reading 'replace') Code of Conduct[X] I agree to follow this project's Code of Conduct

Answers (2)

YaseenHajajwehโ€ข Jun 27, 2022

@artf , sorry i found the solution

options: [
          { id: 'cover', label: 'cover', value: 'cover' },
          { id: 'contain', label: 'contain', value: 'contain' },
          { id: 'fit', label: 'fit', value: 'fit' },
  ],
GJSBlockโ€ข May 17, 2026

Thanks for reporting this, @YaseenHajajweh. The issue with StyleManager.addProperty , type: 'select' , Cannot read properties of undefined (reading 'replace') appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modificati...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins โ†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features โ€” save days of integration work.

Browse premium plugins โ†’

Related tutorials

In-depth guides on the same topic.

All tutorials โ†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.