angular-cli to universal-cli [Angular2]

时间:2017-03-10 22:47:18

标签: angular angular-cli universal universal-cli

在现有的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)

任何人都知道什么是问题?

0 个答案:

没有答案