Build error while doing lazy loading of modules

Viewed 1698

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.

1 Answers

Please export lazy loaded modules in public-api.ts

Related