LoginSignup
0
0

More than 5 years have passed since last update.

Cannot ready property "forEach" of undefined

Posted at

DialogflowのFulfillmentでHelloWorldを試していたところ、
よく解らないエラーに悩まされていました。

githubを確認すると既に修正されているようでした。

Cannot ready property "forEach" of undefined #233
https://github.com/actions-on-google/actions-on-google-nodejs/issues/233

agent.add(conv) not working any more #149
https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/149

新しく作り直しても改善されないようでしたが、

package.json
{
  "dependencies": {
    "dialogflow-fulfillment": "^0.5.0"
  }
}

package.json
{
  "dependencies": {
    "dialogflow-fulfillment": "^0.6.1"
  }
}

のように変えると正常に動作しました。

慣れていると感が働くと思うのですが、
自分が何か間違っていると思い悩んでました・・・

参考になれば幸いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0