question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: nextDialog is not a function

See original GitHub issue

Describe the bug When I tested my chatBot, the error as the title says showed up on the terminal. Is there anything I did wrong? I would be thankful to you if you could provide me with the solution to deal the problem.

TypeError: nextDialog is not a function at n/ode_modules/bottender/dist/bot/Bot.js:37:32 at Generator.next (<anonymous>) at /node_modules/bottender/dist/bot/Bot.js:8:71 at new Promise (<anonymous>) at __awaiter (/node_modules/bottender/dist/bot/Bot.js:4:12) at Run (/node_modules/bottender/dist/bot/Bot.js:34:16) at /node_modules/bottender/dist/bot/Bot.js:158:41

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
chentsulincommented, Feb 14, 2020

Hi @gordonfang199649, I sent a PR to fix the problem in that repo. https://github.com/gordonfang199649/bottenderExample/pull/1

We still have to improve this error message to something like you must export your entry action in your index.js file.

0reactions
gordonfang199649commented, Feb 14, 2020

@chentsulin I appreciate your technical assistance. I’ll replace linehandler with router as your advice says. thx for helping me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nextDialog is not a function · Issue #704 · Yoctol/bottender
Describe the bug tried adding a simple script with a router https://bottender.js.org/docs/en/channel-messenger-handling-events const ...
Read more >
TypeError : .next() is not a function - javascript - Stack Overflow
Your profileIter function is returning an IteratorResult object, not an iterator, so the next() function is not present.
Read more >
Uncaught TypeError: d.Wa is not a function
Uncaught TypeError: d.Wa is not a function. I am not finding much online to describe this error. IT is thrown at this point...
Read more >
TypeError: property.put is not a function - Dojo 1.x users
When I try to pass dmodel properties to my widget, it fails with this error. dojo.js:7 TypeError: property.put is not a function at...
Read more >
SIMATIC Distributed I/O ET 200eco PN
not find the right answers there, contact your local Siemens representative: ... Wiring the ET 200eco PN to functional earth (FE).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found