blog.module.ts depends on 'ngx-masonry'. CommonJS or AMD dependencies can cause optimization bailouts
celvin opened this issue · 3 comments
celvin commented
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"
]
}
}
umrtariq commented
Facing the same issue in angular 9 as well.
wynfred commented
related to angular/angular-cli#18025
wynfred commented
To remove the warning: wynfred/ngx-masonry-demo@a9fe783