Implementing a plugin architecture / plugin system / pluggable framework in Angular 2, 4, 5, 6

Update For Angular 11 I strongly recommend you to take a look at implementation with Webpack 5 Module Federation 🎉 https://github.com/alexzuza/angular-plugin-architecture-with-module-federation Previos version 🛠️ Github demo angular-plugin-architecture Maybe Ivy can change something but for the time being I use the solution that uses Angular CLI Custom Builder and meets the following requirements: AOT avoid duplicate … Read more

Update to Angular v6 – Module not found: Error: Can’t resolve ‘fs’

Since previous answers are quite old, it might help to highlight here that a workaround for Angular9 is just to add the following in your package.json: “browser”: { “fs”: false, “os”: false, “path”: false } This works very well for me. For reference, I found this solution on the official tensorflow/tfjs Github page here.