Npm run build error
Question
npm run build gives error @version 0.17.3
- ../../lib/codemirror in ./src/editor/dist/grapes.min.js
- ../css/css in ./src/editor/dist/grapes.min.js
- ../javascript/javascript in ./src/editor/dist/grapes.min.js
- ../xml/xml in ./src/editor/dist/grapes.min.js
Answers (4)
Give us more details about your build and the error
npm run build:css works fine. But npm run build gives those errors
Thanks for reporting this, @iabhiyaan. The issue with npm run build error appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creating an inconsistent state. What to try: Add a setTimeout wrapper to...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5829
Uncaught TypeError: __webpack_require__.r is not a function at ./node_modules/grapesjs/dist/grapes.mjs (grapes.mjs:1:1) at __webpack_require__ (bootstrap:789:1) at fn (bootstrap:150:1) at ./src/Demo/Templates/TextEditor.js (Templates.js:31:1) at __webpack_require__ (bootstrap:789:1) at fn (bootstrap:150:1) at ./src/Demo/Templates/Templates.js (Templates.css:45:1) at __webpack_require__ (bootstrap:789:1) at fn (bootstrap:150:1)
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 123.0.6312.123Reproducible demo link...
Issue #3526
How to properly initialize grapesjs inside vuex store ?
This throws an error Maximum call stack size exceeded
Issue #5392
Latest version 0.21.6 doesn't come with src folder
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 114.0.5735.199 (Official Bu...
Issue #5059
On second-time use template grapes editor not accepting css which the editor created with random ids on the first time
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 111.0.5563.147 (Official Build) (6...
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
GrapesJS DevTools: A Developer Panel Inside Your Editor
If you've ever debugged GrapesJS with console.log(editor.getSelected()) and a dozen throwaway event listeners β this post is for you.
Tutorial
How We Built Composeit in Record Time Using GrapesJS Shadcn
Bypass foundational builder boilerplate and focus on what truly matters.
Tutorial
Ship to Production Faster: Whatβs New in GrapesJS Shadcn
Supercharge your page builder! GrapesJS Shadcn adds live drag previews, rich text / commands, dynamic data, and canvas presets to ship to prod faster.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.