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
BUG: 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
[Bug] 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
GJS Market 2.0 - Donations, Tracking, Labels and Better Product Discovery
We’ve rolled out a new set of GrapesJS marketplace updates across GJS Market, focused on improving how creators distribute products
Tutorial
Integrating GrapesJS into a Vue 3 App — Complete Guide for 2026
Build a Vue 3 landing page builder with GrapesJS and Vite. Custom blocks, composables, remote storage, TypeScript & production tips. Updated for 2026.
Tutorial
How to Build a Drag-and-Drop Page Builder in Angular Using GrapesJS (Step-by-Step Guide + Code)
Build a visual drag-and-drop page builder in Angular with GrapesJS. Learn setup, plugins, and backend saving in this full code guide.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.