GrapesJS / preset-newsletter

GrapesJS preset configuration for the newsletter editor.
https://grapesjs.com/demo-newsletter-editor.html
BSD 3-Clause "New" or "Revised" License
189 stars 143 forks source link

Problem in Angular product build #134

Open nowitz opened 1 year ago

nowitz commented 1 year ago

If I run project ng serve, everything is OK, plugin works. If I create a production build and run it, I get this error: image image

I have imports: image and I tried imports:

import pluginNewsletter from 'grapesjs-preset-newsletter'; import {default as pluginNewsletter} from 'grapesjs-preset-newsletter'; import * as newsletterPlugin from 'grapesjs-preset-newsletter';

file tsconfig.lib.prod.json: image my code is: image or (I tried both plugin import examples) image

dependencies:

"grapesjs": "0.21.3" "grapesjs-preset-newsletter": "1.0.2" "@angular/core": "16.1.3" "@nx/angular": "16.4.3"

How should the import of the plugin look like or where am I making a mistake? Thx

montella1507 commented 1 year ago

We have the same problem