Thanks for the report, it'll be fixed in the next release.
Read full answer below βQuestion
Version: "0.16.30
Are you able to reproduce the bug from the demo?
[ x] Yes (the news letter demo)
What is the expected behavior? Image resize handles should resize image without throwing an exception.
Describe the bug detailed Clicking on any of the image resize handles throws an Uncaught TypeError.
PropertyView.js:504 Uncaught TypeError: Cannot read property 'get' of undefined at r.isTargetStylable (PropertyView.js:504) at r.checkVisibility (PropertyView.js:326) at r.targetUpdated (PropertyView.js:269) at Et (index.js:759) at r.<anonymous> (index.js:772) at r.<anonymous> (index.js:113) at m (backbone.js:371) at v (backbone.js:356)
at d (backbone.js:151)
at r.c.trigger (backbone.js:346)
Error occurs in:
/**
* Check if target is stylable with this property
* The target could be the Component as the CSS Rule
* @return {Boolean}
*/
isTargetStylable: function isTargetStylable(target) {
var trg = target || this.getFirstTarget(); // *** Target returned is undefined
var model = this.model;
var id = model.get('id');
var property = model.get('property');
var toRequire = model.get('toRequire');
var unstylable = trg.get('unstylable'); // *** error thrown on unchecked variable
var stylableReq = trg.get('stylable-require');
var requires = model.get('requires');
var requiresParent = model.get('requiresParent');
var sectors = this.sector ? this.sector.collection : null;
var selected = this.em ? this.em.getSelected() : null;
var stylable = trg.get('stylable'); // Stylable could also be an array indicating with which property
// the target could be styled
...Answers (2)
Thanks for the report, it'll be fixed in the next release.
Thanks for reporting this, @craighaworth.
Security and dependency issues are important. The GrapesJS team actively works on keeping dependencies up-to-date.
For you right now:
- Run
npm audit fixto see available patches - Check for a newer GrapesJS version that may have already addressed this
- If available, test the latest stable release before upgrading
- If the vulnerability is critical,
npm audit fix --forceis an option, but test thoroughly
Understanding the risk:
- Review the specific vulnerability details on GitHub Security Advisories
- Not all high-severity issues affect your code path
- Some vulnerabilities only trigger under specific conditions
Staying current:
- Watch for new GrapesJS releases
- Subscribe to security notifications on the repo
- The team prioritizes security updates in their release cycle
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4854
export 'default' not found in 'backbone' (module has no exports)
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox 109 Reproducible demo link none De...
Issue #3613
Inconsistent Image Selection
Version: 0.17.19 Are you able to reproduce the bug from the demo?[X] Yes[ ] No Reproducible here. What is the expected behavior? Selecting...
Issue #3693
AdoptStylesheet not supported in grapesJS
Version: You can get the version by typing grapesjs.version into the console 0.17.22 Are you able to reproduce the bug from the demo?[x] Ye...
Issue #5154
TS2416: Property '_up' in type 'PropertyStack' is not assignable to the same property in base type 'PropertyComposite<PropertyStackProps>'
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? ---- Reproducible demo link https://codesa...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.
Tutorial
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
Tutorial
GrapesJS Inline RTE Plugins Update: CKEditor 5 v0.1.4 and Froala Inline Text Editor
CKEditor 5 Inline for GrapesJS v0.1.4 fixes Studio SDK toolbar clipping, iframe injection and link balloon bugs. Compare with Froala Inline β both $69.
Tutorial
Embed GrapesJS in Your SaaS: A Weekend Guide
Embed GrapesJS in your SaaS and ship a white-label page builder over a weekend. Honest tradeoffs, real code, and the plugins that close the UX gap.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.