botpress / tutorial

Getting Started – Tutorial for Botpress X (https://botpress.io/docs/10.0/getting_started/)
7 stars 10 forks source link

Error when trying to run webchat #1

Closed samail closed 6 years ago

samail commented 6 years ago

Hi,

I've cloned the repo and deployed step-1 on heroku server. Everything is working properly within GUI etc. But when i try to run a simple index.html file that embed the webchat, i always get the following error : "Module $platform-webchat with view $embedded not found"

Got several error in console such as : Uncaught TypeError: React.createClass is not a function at Object.botpress.botpress-platform-webchat.Object.defineProperty.value

Any idea what could be wrong ? is this because of "botpress-platform-webchat" ?

Thanks in advance Best

slvnperron commented 6 years ago

Hi Sam, yes please use the new channel-web module. Have a look at step-6 dependencies, which are up to date.

We actually have to update deps in step1 to 5.

Let me know if that works?

On Tue, Mar 13, 2018, 7:16 AM SamLast notifications@github.com wrote:

Hi,

I've cloned the repo and deployed step-1 on heroku server. Everything is working properly within GUI etc. But when i try to run the index file that embed the webchat, i always get the following error : "Module $platform-webchat with view $embedded not found"

Got several error in console such as : Uncaught TypeError: React.createClass is not a function at Object.botpress.botpress-platform-webchat.Object.defineProperty.value

Any idea what could be wrong ? is this because of "botpress-platform-webchat" ? Should we use the new channel-web module ?

Thanks in advance Best

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/botpress/tutorial/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQStDhNLKbuJJnBViU1dBGfAyvW2EN7ks5td6pdgaJpZM4Sof0m .

samail commented 6 years ago

Hey,

Thx for your quick reply. Tested and indeed step6 is working as expected :)

Close this issue then. Best