angular-froala-wysiwyg icon indicating copy to clipboard operation
angular-froala-wysiwyg copied to clipboard

Angular 8 w/Ivy build: ERROR in Failed to find exported name of node (function FroalaEditorModule() {})

Open runov001 opened this issue 5 years ago • 22 comments

I am trying to compile an Angular 8 project with Ivy enabled that uses angular-froala-wysiwyg. Here is the error that I get:

ERROR in Failed to find exported name of node (function FroalaEditorModule() {
    }) in '/Users/orunov/dev/mango/callisto/node_modules/angular-froala-wysiwyg/editor/editor.module.js'.

ng --version:

angular-cli: 1.0.0-beta.28.3 node: 11.15.0 os: darwin x64 @angular/animations: 8.0.0 @angular/cdk: 8.0.0 @angular/common: 8.0.0 @angular/compiler: 8.0.0 @angular/core: 8.0.0 @angular/flex-layout: 7.0.0-beta.23 @angular/forms: 8.0.0 @angular/material: 8.0.0 @angular/material-moment-adapter: 7.2.2 @angular/platform-browser: 8.0.0 @angular/platform-browser-dynamic: 8.0.0 @angular/router: 8.0.0 @angular/cli: 8.0.1 @angular/compiler-cli: 8.1.0-next.1 @angular/language-service: 8.0.0

runov001 avatar Jun 07 '19 14:06 runov001

it looks like you have a very old CLI @runov001. Have you tried upgrading it first and what are you trying to achieve?

sfabriece avatar Jun 19 '19 13:06 sfabriece

I have the same problem with all new versions of angular (and cli). Only happens with the new Ivy renderer.

fightknights avatar Jul 18 '19 12:07 fightknights

the same here: all angular versions in ivy rendering mode - would be nice if we get this fixed

SaschaJankowiak avatar Jul 20 '19 10:07 SaschaJankowiak

Angular recommends ng-packagr to make angular library. But it seems angular-froala-wysiwyg use ngm-cli to build. Angular team consider ng-packagr based library to compatible with ivy compiler.

I can try to fix it with using ng-packagr.

leo6104 avatar Aug 03 '19 13:08 leo6104

I am getting the error without using the Ivy renderer. I'm using angular version 8.2.3.

mgm87 avatar Aug 23 '19 16:08 mgm87

@mgm87 Angular 8.2.3 supports differential loading in cli build process (Differential loading requires ES5, ES2015, UMD build artifacts). But angular-froala-wysiwyg only have umd build artifacts now.

https://docs.google.com/document/d/1Dije0AsJ0PxL3NaeNPxpYDeapj30b_QC0xfeIvIIzgg/preview# As this official document said, angular-froala-wysiwyg should use 'Angular Package Format' to build library.

leo6104 avatar Aug 23 '19 17:08 leo6104

Hi. This is a significant issue for us too. We have turned on Ivy by updating Angular and now builds are failing completely. I think this is about to become urgent for more users.

samdoeswork avatar Sep 20 '19 16:09 samdoeswork

Please fix it!

demiro avatar Oct 01 '19 08:10 demiro

These failures should now be fixed. This seems like the pending one https://github.com/froala/angular-froala-wysiwyg/issues/347.

mgechev avatar Oct 18 '19 20:10 mgechev

Please fix it!

paulici875 avatar Nov 19 '19 13:11 paulici875

Please fix it quickly, we have a paid subscription and getting same error.

sourvil avatar Nov 22 '19 15:11 sourvil

Please fix it quickly, I getting this error while I want to use lvy.

ERROR in Failed to find the exported name of the node (class BsDatepickerDayDecoratorComponent { })

PritiMaurya avatar Nov 24 '19 05:11 PritiMaurya

The same error with FroalaEditorModule and ivy. Froala, fix it pls.

s299 avatar Nov 24 '19 20:11 s299

Please fix, same error using Ivy

mattrayan avatar Dec 05 '19 02:12 mattrayan

Please, any answer the team?

jpablocardona avatar Dec 06 '19 19:12 jpablocardona

Can someone at Froala please fix this as a critical priority, I need Ivy enabled in my project and this is the only dependency preventing me from being able to enable Ivy.

StickNitro avatar Dec 10 '19 10:12 StickNitro

It would be great if we could get a status from the Froala team here, we're also stuck with this build error.

lasserg avatar Dec 17 '19 16:12 lasserg

We are also stuck on the same issue

gd1990 avatar Dec 30 '19 12:12 gd1990

@StickNitro , did you experience any problems with the version by @leo6104 from https://github.com/froala/angular-froala-wysiwyg/pull/329 ?

earshinov avatar Jan 06 '20 14:01 earshinov

@earshinov Yes, that does work fine with Ivy

StickNitro avatar Jan 23 '20 11:01 StickNitro

For anyone interested in why there is still no reply from Froala team, I've recently contacted them on the topic of license renewal and asked why they don't reply to issues reported to GitHub. Here is the answer (hopefully it is legal to share it):

As far as support on the Github channel is concerned, in most cases, it is community support. Therefore, I kindly recommend that you contact us via Support Channel in the future.

I am leaving it up to you to decide whether you want to have anything to do with this project. But perhaps it can help you make the right decision if you look through the first couple of pages of https://github.com/froala/wysiwyg-editor/issues paying attention to the number of replies.

earshinov avatar Sep 16 '20 18:09 earshinov

By the way, angular-froala-wysiwyg 3.2.2 builds and works fine under Ivy (but seems to no longer build without Ivy).

See also https://github.com/angular/ngcc-validation/issues/57#issuecomment-657745488

earshinov avatar Sep 18 '20 10:09 earshinov