ckeditor5-angular icon indicating copy to clipboard operation
ckeditor5-angular copied to clipboard

EditorWatchdog deep import warning

Open VagrantAI-c opened this issue 4 years ago • 19 comments

I don't know whether this is somewhat relevant, but from last deps version bump angular started to throw next warning when serving app with ckeditor5-angular component:

Warning: Entry point '@ckeditor/ckeditor5-angular' contains deep imports into '.../node_modules/@ckeditor/ckeditor5-watchdog/src/editorwatchdog'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

Versions: ckeditor5-angular: 1.2.2 (bumped from 1.2.1) angular: 9.1.0 (bumped from 9.0.4)

Related: https://github.com/angular/angular/issues/35615

VagrantAI-c avatar Mar 26 '20 10:03 VagrantAI-c

cc @ma2ciek

Mgsy avatar Mar 26 '20 10:03 Mgsy

I'll check it. But TBH I don't think it's a real issue.

ma2ciek avatar Mar 26 '20 12:03 ma2ciek

I see it's a new complier warning (IVY).

ma2ciek avatar Mar 26 '20 12:03 ma2ciek

I tried to update the library compiler but that's not so easy in the current situation.

I'll lower the issue priority as it's not breaking anything and the fix is currently hard to guess.

ma2ciek avatar Apr 03 '20 12:04 ma2ciek

Hm. that's probably a reason why the production build sometimes fails - #194. :disappointed: I'll have to look closer on it.

ma2ciek avatar May 07 '20 09:05 ma2ciek

I saw just a PR fixing such an issue - nicky-lenaers/ngx-scroll-to#123. And the fix was mainly by updating dev dependencies. So I'll have to work on the #182 soon.

ma2ciek avatar May 07 '20 09:05 ma2ciek

+1 I have the issue that the Modul not longer works in Production mode because of the deep mereg warning

DerHerrGammler avatar May 11 '20 00:05 DerHerrGammler

Same issue here, waiting for a fix.

MVDeveloper1 avatar Aug 19 '20 01:08 MVDeveloper1

any progress on this?

tobiasschweizer avatar Sep 17 '20 08:09 tobiasschweizer

Any updates

sairam59 avatar Sep 26 '20 05:09 sairam59

Unfortunately, the recent update of deps and internal tools for building the library didn't close this issue, but I checked that it should be possible to turn these warnings off by creating the ngcc.config.js file in the project root and specifying the ignorableDeepImportMatchers option - it's described in the angular/angular#35615.

ma2ciek avatar Oct 22 '20 08:10 ma2ciek

@ma2ciek Thanks for the update!

Can you tell if this was the reasons for your production build to fail?

tobiasschweizer avatar Oct 22 '20 11:10 tobiasschweizer

Can you tell if this was the reasons for your production build to fail?

Short answer: no. Our release script was using out-dated Angular utils, which built a library incompatible with Angular 9+ apps. After updating library bundling utils it turned out that the new major version should be released as the bundled library is no longer compatible with Angular 5-8 (hello the beautiful JS world) That's why the https://github.com/ckeditor/ckeditor5-angular/releases/tag/v2.0.1 was released.

ma2ciek avatar Oct 22 '20 14:10 ma2ciek

@ma2ciek Is this related to CommonJS module? This came with Angular 10 and affects the way libs are built.

tobiasschweizer avatar Oct 22 '20 15:10 tobiasschweizer

Screenshot from 2021-01-22 15-52-24 I'm getting this issue on building the app with build optimizer set to true. It goes away by setting flag to false. But it increases the bundle size.

huzaifa074 avatar Jan 22 '21 10:01 huzaifa074

I have use this code. it has solve my problem.
'@ckeditor/ckeditor5-angular': { ignorableDeepImportMatchers: [ /@ckeditor//, ] }

nemofalcon avatar Mar 09 '21 04:03 nemofalcon

I have use this code. it has solve my problem. '@ckeditor/ckeditor5-angular': { ignorableDeepImportMatchers: [ /@ckeditor//, ] }

@nemofalcon hello there. Sorry for bothering you, but where you added this code ?

eduardorangell avatar Apr 26 '21 15:04 eduardorangell

@eduardorangell github

nemofalcon avatar Apr 26 '21 17:04 nemofalcon

Create ngcc.config.js and add this:

module.exports = {
  packages: {
    '@ckeditor/ckeditor5-angular': {
      ignorableDeepImportMatchers: [
        /@ckeditor\//,
      ]
    }
  }
}

Any news on this its really anoying :D

Dzivo avatar Sep 24 '21 22:09 Dzivo