wynfred/ngx-masonry

blog.module.ts depends on 'ngx-masonry'. CommonJS or AMD dependencies can cause optimization bailouts

celvin opened this issue · 3 comments

Recently upgraded to Angular 10 and getting this error messages:

blog.module.ts depends on 'ngx-masonry'. CommonJS or AMD dependencies can cause optimization bailouts

ngx-masonry.js depends on 'masonry-layout'. CommonJS or AMD dependencies can cause optimization bailouts.

My tsconfig.json

{
  "extends": "../tsconfig.base.json",
  "compilerOptions": {
    "outDir": "../out-tsc/e2e",
    "module": "ES2020",
    "target": "es2018",
    "types": [
      "jasmine",
      "jasminewd2",
      "node"
    ]
  }
}

Facing the same issue in angular 9 as well.

To remove the warning: wynfred/ngx-masonry-demo@a9fe783