在现有的 angular-cli 项目中,我正在尝试集成通用...
我从这里遵循指南:https ://github.com/devCrossNet/universal-cli
但是在我这样做之后,ung serve
我得到了错误:
/home/master/Documents/foo/node_modules/@angular/platform-browser/src/dom/dom_adapter.js:9
export function getDOM() {
^^^^^^
SyntaxError: Unexpected token export
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/master/Documents/foo/dist/server/server.bundle.js:1375:18)
at __webpack_require__ (/home/master/Documents/foo/dist/server/server.bundle.js:21:30)
有谁知道是什么问题?