Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 预呈现失败,原因是错误:TypeError:无法读取属性';getDOM';未定义的_Angular - Fatal编程技术网

Angular 预呈现失败,原因是错误:TypeError:无法读取属性';getDOM';未定义的

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.

将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.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也遇到同样的问题-你能解决这个问题吗?