Issue #3575Opened June 28, 2021by jcsofts0 reactions

grapes.min.js:2 Uncaught TypeError: Cannot read property 'length' of undefined

Question

I got this error when add the

<iframe src="https://app.conversiobot.com/boot/fvMEvO" width="100%" height="500" frameBorder="0" allow="geolocation"></iframe> used the custom code component.

my code works fine with 0.17.4, but got below error with 0.17.19

grapes.min.js:2 Uncaught TypeError: Cannot read property 'length' of undefined at r.loadTraits (grapes.min.js:2) at r.initTraits (grapes.min.js:2) at r.initialize (grapes.min.js:2) at r.e.Model (grapes.min.js:2) at r [as constructor] (grapes.min.js:2) at r [as constructor] (grapes.min.js:2) at r [as constructor] (grapes.min.js:2) at new r (grapes.min.js:2) at new model (grapes.min.js:2) at r._prepareModel (grapes.min.js:2)

Answers (2)

artfJuly 21, 20210 reactions

Thanks for the report, the fix is ready for the next release.

rahul-singh-bvSeptember 8, 20220 reactions

I am encountering a similar issue with v0.19.5 when I try to add an iframe inside of a custom code block

TypeError: m.render is not a function
    at a.value (ComponentsView.js:86:23)
    at a.value (ComponentsView.js:39:10)
    at y (backbone.js:371:57)
    at m (backbone.js:356:19)
    at h (backbone.js:155:16)
    at u.trigger (backbone.js:346:5)
    at n._onModelEvent (backbone.js:1187:20)
    at y (backbone.js:372:58)
    at m (backbone.js:357:22)
    at h (backbone.js:155:16) {level: 'error'}

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.