silentrob / superscript-editor

NOT MAINTAINED - A Editor for authoring chatbots with SuperScript
MIT License
27 stars 16 forks source link

Editor crashes if gambit not found #36

Closed ArkeologeN closed 8 years ago

ArkeologeN commented 9 years ago

An error came up similar to cannot read property parent of undefinedand that's coming from a database record property.

Here's more:

/home/deploy/code/superscript-editor/node_modules/superscript/lib/topics/common.js:22
        if (reply.parent.parent) {
                        ^
TypeError: Cannot read property 'parent' of undefined
wac81 commented 8 years ago

same issue ,how to fix?

ArkeologeN commented 8 years ago

The great solution is stop using editor! :) We're just using the exported bot module now, but I think the issue was due to existing data. Just for a safer side, try dropping your database and run the gambit again.

silentrob commented 8 years ago

updated the readme. please use the CLI in SuperScript.