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

EditorWatchdog deep import warning #181

Open
VagrantAI-c opened this issue Mar 26, 2020 · 19 comments
Open

EditorWatchdog deep import warning #181

VagrantAI-c opened this issue Mar 26, 2020 · 19 comments
Labels
squad:platform Issue to be handled by the Platform team. type:bug

Comments

@VagrantAI-c
Copy link

VagrantAI-c commented Mar 26, 2020

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: angular/angular#35615

@Mgsy
Copy link
Member

Mgsy commented Mar 26, 2020

cc @ma2ciek

@ma2ciek
Copy link
Contributor

ma2ciek commented Mar 26, 2020

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

@ma2ciek
Copy link
Contributor

ma2ciek commented Mar 26, 2020

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

@ma2ciek ma2ciek self-assigned this Mar 26, 2020
@ma2ciek
Copy link
Contributor

ma2ciek commented Apr 3, 2020

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 ma2ciek removed their assignment Apr 3, 2020
@ma2ciek ma2ciek added this to the nice-to-have milestone Apr 3, 2020
@ma2ciek
Copy link
Contributor

ma2ciek commented May 7, 2020

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

@ma2ciek ma2ciek modified the milestones: nice-to-have, iteration 32 May 7, 2020
@ma2ciek
Copy link
Contributor

ma2ciek commented May 7, 2020

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.

@DerHerrGammler
Copy link

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

@Reinmar Reinmar modified the milestones: iteration 32, nice-to-have May 25, 2020
@Reinmar Reinmar added the squad:collaboration Issue to be handled by the Collaboration team. label May 25, 2020
@marcelvarela
Copy link

Same issue here, waiting for a fix.

@tobiasschweizer
Copy link

any progress on this?

@sairam59
Copy link

Any updates

@ma2ciek ma2ciek removed the squad:collaboration Issue to be handled by the Collaboration team. label Sep 27, 2020
@oleq oleq modified the milestones: nice-to-have, iteration 37 Sep 30, 2020
@ma2ciek
Copy link
Contributor

ma2ciek commented Oct 22, 2020

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 ma2ciek modified the milestones: iteration 37, nice-to-have Oct 22, 2020
@tobiasschweizer
Copy link

@ma2ciek Thanks for the update!

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

@ma2ciek
Copy link
Contributor

ma2ciek commented Oct 22, 2020

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.

@tobiasschweizer
Copy link

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

@huzaifa074
Copy link

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.

@pomek pomek modified the milestones: nice-to-have, backlog Feb 8, 2021
@nemofalcon
Copy link

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

@eduardorangell
Copy link

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 ?

@nemofalcon
Copy link

@eduardorangell
github

@Dzivo
Copy link

Dzivo commented Sep 24, 2021

Create ngcc.config.js and add this:

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

Any news on this its really anoying :D

@Reinmar Reinmar added squad:platform Issue to be handled by the Platform team. and removed squad:integrations labels Oct 28, 2021
@pomek pomek removed this from the backlog milestone Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squad:platform Issue to be handled by the Platform team. type:bug
Projects
None yet
Development

No branches or pull requests