ERROR TypeError: r is not a function
Sorry but that chunk of error, pasted like this (without the stack, file reference, etc.), tells absolutely nothing, it might also be an error in your source
Read full answer below βQuestion
Grapesjs working absolutely fine at my local end as well as at yarn build --aot, but once we done with yarn build --prod, once we opening editor showing me
ERROR TypeError: r is not a function
Array.forEach (<anonymous>)
at Object.init
can please help me to resolve this issue?
Answers (1)
Sorry but that chunk of error, pasted like this (without the stack, file reference, etc.), tells absolutely nothing, it might also be an error in your source
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3325
JSON.stringify(this.editor.getComponents()) Error
Version: 0.16.44 Hi there! I have remote storage for pages, and recently I faced an issue when saving page, JSON.stringify(editor.getCompon...
Issue #3075
Unhandled Rejection (TypeError): i.classList is undefined
Hi. I updated GrapesJS to its current version 0.16.22 and I get an error on the callback function: editor.on("component:add", (model) => {...
Issue #2700
Hover editor result in TypeError: this[0].getAttribute is not a function
Are you using the latest release (older versions are NOT supported)? Yes, using latest v0.16.3 version. What happen? Upgraded from WORKING...
Issue #2823
I have used this method to load fonts , working fine in chrome but showing original fonts list in safari
editor.on('load', function () { styleManager = editor.StyleManager; fontProperty = styleManager.getProperty('Typography', 'font-family'); v...
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
Lighthouse for GrapesJS: Audit Accessibility and SEO Without Leaving the Editor
Live WCAG 2.1/2.2 accessibility auditor + SEO manager for GrapesJS. Every finding is bound to the exact component β click to select, then one-click fix.
Tutorial
How to integrate GrapesJS into an Astro app (complete guide 2026)
Embed GrapesJS in an Astro site: mount it in a client-side script, save content to an Astro API endpoint, and export clean HTML/CSS.
Tutorial
How to integrate GrapesJS into a Django app (complete guide 2026)
Embed GrapesJS in a Django project: render the editor in a template, persist content to a view with CSRF, store the project JSON, and export HTML/CSS.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.