Issue #3048💬 AnsweredOpened September 25, 2020by ealipio0 reactions

TypeError: Cannot read property 'get' of undefined

快速解答by artf

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

Read full answer below ↓

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, 2020

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, 2020

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

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.