In the universal docs for version 6, which is at: https://v6.angular.io/guide/universal#step-5-pack-and-run-the-app-on-the-server there is a bug in the docs. See heading "Step 5: Pack and run the app on the server" the webpack server config file should not start with NgModule ``` @NgModule({ const path = require('path'); const webpack = require('webpack'); ``` but be? ``` const path = require('path'); const webpack = require('webpack'); // rest of the code here ```
In the universal docs for version 6, which is at:
https://v6.angular.io/guide/universal#step-5-pack-and-run-the-app-on-the-server
there is a bug in the docs.
See heading "Step 5: Pack and run the app on the server"
the webpack server config file should not start with NgModule
but be?