WebDataRocks / web-pivot-table

A feature-rich JS pivot grid library for creating interactive reports. Integrates with any front-end technology
https://www.webdatarocks.com
55 stars 4 forks source link

CommonJS or AMD dependencies can cause optimization bailouts #4

Closed ciukstar closed 3 years ago

ciukstar commented 3 years ago

I get this warning every time I compile my project. Is there a way to solve this problem?

...webdatarocks.angular4.ts depends on 'webdatarocks'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Env:

$ npm list webdatarocks
...
└── webdatarocks@1.3.3
$ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 11.0.5
Node: 14.15.3
OS: linux x64

Angular: 11.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1100.5
@angular-devkit/build-angular   0.1100.5
@angular-devkit/core            11.0.5
@angular-devkit/schematics      11.0.5
@angular/cdk                    11.0.3
@angular/flex-layout            11.0.0-beta.33
@angular/material               11.0.3
@schematics/angular             11.0.5
@schematics/update              0.1100.5
rxjs                            6.6.3
typescript                      4.0.5
Uaman commented 3 years ago

We recommend checking on our new "ng-webdatarocks" wrapper. Our team has checked it with angular@11 and the project compile doesn't show any warnings. You can also test it on our sample - https://github.com/WebDataRocks/pivot-angular.

ciukstar commented 3 years ago

Successfully switched to "ng-webdatarocks". Thanks!