2017-07-05 11 views
2

https://doc.zeroc.com/display/Ice36/Writing+an+Ice+Application+with+JavaScript氷のデモでは、未定義のプロパティ '約束' を読み込めません

ただ、公式サイトの例、私はノードClient.jsを実行し、

Ice.Promise.try(
^

TypeError: Cannot read property 'Promise' of undefined 
    at Object.<anonymous> (/home/lanceloft/learn/ice/Client.js:6:4) 
    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.runMain (module.js:604:10) 
    at run (bootstrap_node.js:389:7) 
    at startup (bootstrap_node.js:149:9) 
    at bootstrap_node.js:504:3 

システム:ubuntu16.04

答えて

2

ルックスドキュメントのバグのように、require("icejs")require("ice")に置き換えてください。それがあなたの問題を解決するかどうか試してみることができますか?

ドキュメントを修正いたします。それ以外の場合、いくつかの出発点についてはJavaScriptのデモをご覧ください>https://github.com/zeroc-ice/ice-demos/tree/3.6/js

Benoit

+0

本当に問題が解決され、非常に感謝しています – Lanceloft

関連する問題