If I run project ng serve, everything is OK, plugin works.
If I create a production build and run it, I get this error:
I have imports:
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:
my code is:
or (I tried both plugin import examples)
If I run project
ng serve
, everything is OK, plugin works. If I create aproduction build
and run it, I get this error:I have imports: and I tried imports:
file tsconfig.lib.prod.json: my code is: or (I tried both plugin import examples)
dependencies:
How should the import of the plugin look like or where am I making a mistake? Thx