I\'m trying to migrate my Angular Universal project from Angular v5 to v6
I\'ve got a service where I use fs to load the translation on the server side.
fs
The accepted answer is correct; you can't use fs anymore in Angular v6+.
However, this alternative builder (it's an extension to the Angular CLI) allows you to target an Electron environment and have full access to Electron's features:
https://github.com/angular-guru/electron-builder