Angular 4 Universal Node.js server.js Error -
i'm building angular 4 cli app , trying ssr using new builtin universal. seems work fine until try run node server.js
the below error returned:
var crypto = require('crypto'); ^ typeerror: require not function @ object.webpackemptycontext.keys (/dist-server/server.js:156480:14) @ __webpack_require__ (/dist-server/server.js:20:30) @ object.<anonymous> (/dist-server/server.js:156469:20) @ __webpack_require__ (/dist-server/server.js:20:30) @ object.module.exports.raw (/dist-server/server.js:42461:18) @ __webpack_require__ (/dist-server/server.js:20:30) @ object.<anonymous> (/dist-server/server.js:42340:15) @ __webpack_require__ (/dist-server/server.js:20:30) @ object.<anonymous> (/dist-server/server.js:77201:22) @ __webpack_require__ (/dist-server/server.js:20:30)
any angular 4 universal experts out there?
Comments
Post a Comment