Angular 预呈现失败,原因是错误:TypeError:无法读取属性';getDOM';未定义的
将Angular 2.o升级到Angular 4.0时出错Angular 预呈现失败,原因是错误:TypeError:无法读取属性';getDOM';未定义的,angular,Angular,将Angular 2.o升级到Angular 4.0时出错 Exception: Call to Node module failed with error: Prerendering failed because of error: TypeError: Cannot read property 'getDOM' of undefined at Object. (D:\Angularplayapp\node_modules\angular2-platform-node\get-dom.
Exception: Call to Node module failed with error: Prerendering failed because of error: TypeError: Cannot read property 'getDOM' of undefined
at Object. (D:\Angularplayapp\node_modules\angular2-platform-node\get-dom.js:3:61) at Module._compile (module.js:570:32)
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. (D:\Angularplayapp\node_modules\angular2-platform-node\index.js:5:17)
at Module._compile (module.js:570:32)
您使用的是哪个版本的angular2平台节点?尝试@2.1.0-rc.1也遇到同样的问题-你能解决这个问题吗?