1

我使用Universal-starter并在server.ts. 我添加domino了定义window对象以防止服务器端出现一些“窗口未定义”错误。

这是错误日志:

ERROR TypeError: Cannot read property 'toLowerCase' of undefined at 
EmulatedEncapsulationServerRenderer2.DefaultServerRenderer2.setProperty 
(/universal/dist/server.js:125246:34) at BaseAnimationRenderer.setProperty 
(/universal/dist/server.js:124312:27) at SafeSubscriber._next 
(/universal/dist/server.js:161724:28) at SafeSubscriber.__tryOrUnsub 
(/universal/dist/server.js:27968:16) at SafeSubscriber.next 
(/universal/dist/server.js:27906:22) at Subscriber._next 
(/universal/dist/server.js:27849:26) at Subscriber.next 
(/universal/dist/server.js:27826:18) at TakeWhileSubscriber.nextOrComplete 
(/universal/dist/server.js:37724:25) at TakeWhileSubscriber._next 
(/universal/dist/server.js:37719:14) at TakeWhileSubscriber.Subscriber.next (/universal/dist/server.js:27826:18)

从这个文件:

angular/platform-server/src/server_renderer.ts 关联

我怎样才能解决这个问题?回购在这里angular-universal-nebular-theme

4

0 回答 0