GrapesJS v0.21.5 Doesn't Work in NodeJS (Headless)
Can you check with the latest version https://github.com/GrapesJS/grapesjs/releases/tag/v0.21.6 Thank you so much @artf this works perfectly.
Read full answer below βQuestion
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? ChromeV117.0.5938.62 Reproducible demo link https://stackblitz.com/edit/node-1zsusv Describe the bug How to reproduce the bug? Run node index.js to start application. What is the expected behavior? ... What is the current behavior? If is necessary to execute some code in order to reproduce the bug, paste it here below: Code of Conduct [X] I agree to follow this project's Code of Conduct
Answers (3)
Can you check with the latest version https://github.com/GrapesJS/grapesjs/releases/tag/v0.21.6
Thank you so much @artf this works perfectly.
Can you check with the latest version https://github.com/GrapesJS/grapesjs/releases/tag/v0.21.6
The issue you're encountering, TypeError: grapesjs.init is not a function when running GrapesJS in a Node.js environment, stems from a fundamental misunderstanding of how GrapesJS operates and the purpose of the headless: true option. Root Cause GrapesJS is primarily a client-side, browser-based Ja...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6271
Drag and drop of components doesn't work on latest Firefox
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox 131.0 (64-bit) on Linux and Mac Re...
Issue #6063
How to load grapesjs by default preview
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? latest Reproducible demo link https://stac...
Issue #5388
Running Headless Mode Returns Different HTML from Editor
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? ChromeV117.0.5938.62 Reproducible demo lin...
Issue #4250
init() method typings error
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v 100.0.4896.75 Reproducible demo l...
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
Embed GrapesJS in Your SaaS: A Weekend Guide
Embed GrapesJS in your SaaS and ship a white-label page builder over a weekend. Honest tradeoffs, real code, and the plugins that close the UX gap.
Tutorial
Big Updates: TinyMCE 8 and Placeholder 2.0 for GrapesJS
In May we shipped major updates to two of our most popular GrapesJS plugins β TinyMCE Inline Text Editor and Placeholder.
Tutorial
Find the Right GrapesJS Plugin in Seconds: Smarter Discovery Is Live
We're shipping a set of discovery upgrades. New label filters, a proper compatibility switch for GrapesJS vs Studio, one-click and a smarter sort bar.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.