While doing lazy loading of a module in another module, getting build error. The lazy loading works fine while doing the ng serve.
Angular version :11.1.2
[error] Error: When building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.