2

今日、Twitch.TV のチャット サーバーで使用する新しいプロジェクト (IRC Bot など) を開始しました。

Atmosphere で見つけた accounts-twitch パッケージを使用したかったのですが、accounts-oauth2-helper への依存関係が廃止されたため、手動でインストール (package.js ファイルを編集) する必要がありました。

正しくインストールした後、起動時にアプリがクラッシュします。死ぬ前に次のエラーが発生しますが、修正方法がわかりません。

[[[[[ ~/projects/wasdbot ]]]]]

=> Started MongoDB.
=> Starting your app...

W20140605-15:22:42.283(-4)? (STDERR) 
W20140605-15:22:42.350(-4)? (STDERR) /home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/fibers/future.js:173
W20140605-15:22:42.350(-4)? (STDERR)                        throw(ex);
W20140605-15:22:42.350(-4)? (STDERR)                              ^
W20140605-15:22:42.351(-4)? (STDERR) TypeError: Cannot call method 'registerService' of undefined
W20140605-15:22:42.351(-4)? (STDERR)     at Package (packages/accounts-twitch/twitch_server.js:2)
W20140605-15:22:42.351(-4)? (STDERR)     at Package (packages/accounts-twitch/twitch_server.js:82)
W20140605-15:22:42.351(-4)? (STDERR)     at packages/accounts-twitch.js:123:4
W20140605-15:22:42.351(-4)? (STDERR)     at packages/accounts-twitch.js:130:3
W20140605-15:22:42.352(-4)? (STDERR)     at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:155:10
W20140605-15:22:42.352(-4)? (STDERR)     at Array.forEach (native)
W20140605-15:22:42.352(-4)? (STDERR)     at Function._.each._.forEach (/home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11)
W20140605-15:22:42.352(-4)? (STDERR)     at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
W20140605-15:22:43.456(-4)? (STDERR) 
W20140605-15:22:43.457(-4)? (STDERR) /home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/fibers/future.js:173
W20140605-15:22:43.457(-4)? (STDERR)                        throw(ex);
W20140605-15:22:43.458(-4)? (STDERR)                              ^
W20140605-15:22:43.463(-4)? (STDERR) TypeError: Cannot call method 'registerService' of undefined
W20140605-15:22:43.463(-4)? (STDERR)     at Package (packages/accounts-twitch/twitch_server.js:2)
W20140605-15:22:43.464(-4)? (STDERR)     at Package (packages/accounts-twitch/twitch_server.js:82)
W20140605-15:22:43.464(-4)? (STDERR)     at packages/accounts-twitch.js:123:4
W20140605-15:22:43.464(-4)? (STDERR)     at packages/accounts-twitch.js:130:3
W20140605-15:22:43.465(-4)? (STDERR)     at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:155:10
W20140605-15:22:43.465(-4)? (STDERR)     at Array.forEach (native)
W20140605-15:22:43.465(-4)? (STDERR)     at Function._.each._.forEach (/home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11)
W20140605-15:22:43.466(-4)? (STDERR)     at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
W20140605-15:22:44.622(-4)? (STDERR) 
W20140605-15:22:44.624(-4)? (STDERR) /home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/fibers/future.js:173
W20140605-15:22:44.625(-4)? (STDERR)                        throw(ex);
W20140605-15:22:44.625(-4)? (STDERR)                              ^
W20140605-15:22:44.628(-4)? (STDERR) TypeError: Cannot call method 'registerService' of undefined
W20140605-15:22:44.629(-4)? (STDERR)     at Package (packages/accounts-twitch/twitch_server.js:2)
W20140605-15:22:44.629(-4)? (STDERR)     at Package (packages/accounts-twitch/twitch_server.js:82)
W20140605-15:22:44.630(-4)? (STDERR)     at packages/accounts-twitch.js:123:4
W20140605-15:22:44.630(-4)? (STDERR)     at packages/accounts-twitch.js:130:3
W20140605-15:22:44.630(-4)? (STDERR)     at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:155:10
W20140605-15:22:44.631(-4)? (STDERR)     at Array.forEach (native)
W20140605-15:22:44.631(-4)? (STDERR)     at Function._.each._.forEach (/home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11)
W20140605-15:22:44.631(-4)? (STDERR)     at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.

問題は、twitch_server.js の Accounts.oauth.registerService へのこの呼び出しにあるようですが、それを修正する方法がよくわかりません。

また、API ドキュメントのどこにもこの oauth に関する情報が見つからないようです。または、間違った場所を探しているか、含まれているはずのパッケージが見つからない可能性があります。

プロジェクトに追加したのは、今のところ accounts-twitch、accounts-ui、coffeescript だけです。Meteor を起動しようとしているだけで、まだコードを書いていません。

どんな助けでも素晴らしいでしょう。皆様のお時間をいただき、誠にありがとうございました。

4

0 に答える 0