Issue #3048Opened September 25, 2020by ealipio0 reactions

[BUG]: TypeError: Cannot read property 'get' of undefined

Question

Version:

0.16.22

Are you able to reproduce the bug from the demo?

[x] Yes [ ] No

What is the expected behavior?

no errors in the console.

Describe the bug detailed

TypeError: Cannot read property 'get' of undefined
  at apply (./node_modules/grapesjs/dist/grapes.min.js:11:64180)
  at HTMLDocument.r (./node_modules/@sentry/browser/esm/helpers.js:71:23)

File involved is: https://github.com/artf/grapesjs/blob/6296bf8c970f700aa69e44728b7db80833452f69/src/dom_components/view/ComponentTextView.js#L61

  const { model, rte, activeRte, em } = this;
    const editable = model.get('editable'); // if model is undefined we have the bug

Answers (2)

artfOctober 9, 20200 reactions

Weird (the view component can't exist without the model), are you able to provide exact steps to reproduce the issue?

no-response[bot]October 19, 20200 reactions

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.