I upgraded my angular cli
from the 6 version to the 8.1, Angular universal
has changed the simple construction method by @nguniversal/module-map-ngfactory-loader
, I should re-deploy, clear the old configuration.
- run
ng add @nguniversal/express-engine --clientProject [project name]
Error message:
Skipping installation: Package already installed
Target name already exists.
run
npm install --save @nguniversal/module-map-ngfactory-loader
build universal, run
build:ssr
("npm run build:client-and-server-bundles && npm run compile:server")
I need to remove some files, modify some files and reinstall @nguniversal/express-engine
?