BUG When import as module Angular 6
@nternouski I'm guessing you needed to include the gjs-preset-newsletter script in the scripts section of your build in angular.json. Any plugins you want to use need to be included here or the angular build won't know to include them.
Read full answer below βQuestion
in Version: "grapesjs": "^0.14.61", "grapesjs-preset-newsletter": "^0.2.20", i import the script as: and the context is the code: And only on build, the console print: Please Help me. Thanks for your time.
Answers (3)
@nternouski I'm guessing you needed to include the gjs-preset-newsletter script in the scripts section of your build in angular.json. Any plugins you want to use need to be included here or the angular build won't know to include them.
If you don't add it globally, you'll need to manually register the plugin with grapesjs. Then, be sure to use the ID you configured and not the variable name when initializing.
Hi @nternouski, unfortunately, that plugin still uses the old exporting, so you have to use it like this:
import grapesjs from "grapesjs";
import "grapesjs-preset-newsletter";
...
grapesjs.init({
...
plugins: ["gjs-preset-newsletter"],
...
})
Related Questions and Answers
Continue research with similar issue discussions.
Issue #519
No Blocks by default
Using this code I get an editor but there are no blocks. I also do not get the icons for the screen size but other icons are there. As you...
Issue #1505
Adding row and sections not working
i am integrating grapejs with angular6. but it is not working means it is not showing on blocks i am using following code
Issue #507
UploadFile being called twice on drop file?
I have an editor initialized as so: If I add an image to the canvas and try to upload a new image by dragging it into the drop area in the...
Issue #3071
Update listener triggered on initial load
Hello! I found weird bug with update listener. It's triggered on initial load if html code has <img> tag with class attribute: You can chec...
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
How Much Does It Cost to Build a SaaS Page Builder in 2026?
How much does it cost to build a SaaS page builder in 2026? Explore realistic development costs, timelines, features, and how using GrapesJS can reduce
Tutorial
PageKit: the GrapesJS application you'd have to build anyway
A source-available Next.js app around the open-source GrapesJS core β publishing, custom domains, leads, checkout and a plugin loader.
Tutorial
UnStudio for GrapesJS: 4 Plugins to Build Better Visual Editors
Meet UnStudio, a new GrapesJS plugin studio with four tools, safer and better editor: Command Palette, Responsive Pack, Autosave & Restore, and Autofill
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.