Server-side rendering (SSR) with Angular Universal issues with swarm-js

Viewed 342

On running the command for server-side rendering: ng run <project-name>:server:production

Getting the following error:

ERROR in ./node_modules/swarm-js/node_modules/got/index.js
Module not found: Error: Can't resolve './package' in 'Project-path\node_modules\swarm-js\node_modules\got'

ERROR in ./node_modules/swarm-js/node_modules/got/index.js
Module not found: Error: Can't resolve 'electron' in 'Project-path\node_modules\swarm-js\node_modules\got'

I'm using Angular 10 and Windows system.

0 Answers
Related