Closed mgebeily closed 6 years ago
It's happening just because grapesjs-preset-newsletter uses an old way of loading the plugin, I'll fix it soon
Im having the same issue, was this ever resolved?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Similar to issue #902 but I can't seem to resolve with the steps taken in that discussion.
I'm using the latest version of Angular, Webpack, and TypeScript.
I'm able to get the editor itself up fine. However, when I try to import
grapesjs-preset-newsletter
, I'm gettinggrapesjs is not defined
. My imports look like this:Then, in ngOnInit, I'm calling:
This doesn't load the preset. The interesting thing is if I have
grapesjsNewsletters
anywhere in my code, I getgrapesjs is not defined
.Am I missing something blatant about how webpack or TypeScript imports work with grapesjs presets?
Thank you for your help in advance. Your library has been excellent to work with.