Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in Angular product build #134

Open
nowitz opened this issue Sep 8, 2023 · 1 comment
Open

Problem in Angular product build #134

nowitz opened this issue Sep 8, 2023 · 1 comment

Comments

@nowitz
Copy link

nowitz commented Sep 8, 2023

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
Copy link

We have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants