question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 11.2.x gives CommonJS or AMD dependencies warning with calendar-link

See original GitHub issue

When using calendar-link with angular 11.2.x, we get the following warning upon doing ng serve.

Warning: D:\Git\Project\src\app\core\my.component.ts depends on 'calendar-link'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

CommonJS dependencies are being unadvised for Angular starting from versions 10.x.

Info: Angular version: 11.2.9 Angular cli version: 11.2.8 calendar-link version: 2.0.16

More information here: Configuring CommonJS dependencies

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Heatmanofuriosocommented, Apr 27, 2021

@Ruslancic That seems to be a different issue though.

You should probably open a dedicated issue for it.

0reactions
AnandChowdharycommented, Sep 21, 2022

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix CommonJS or AMD dependencies can cause optimization ...
When you use a dependency that is packaged with CommonJS, it can result in larger slower applications. Starting with version 10, Angular now ......
Read more >
Workspace npm dependencies - Angular
The following Angular packages are included as dependencies in the default package.json file for a new Angular workspace. For a complete list of...
Read more >
Impossible to start project - Flatlogic Forum
Hello,. I get the code from GitHub, installed latest version of Angular and Yarn. I get the packages no problem.
Read more >
Tutorial - Set up fullstack project - Angular - AWS Amplify Docs
Angular CLI output warnings: if you see CommonJS or AMD dependencies optimization bailouts warnings using Angular 9+, you can use this gist to...
Read more >
could not resolve dependency: npm err! peer @angular/core ...
When I this command I get below errors. npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: csi ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found