Stand-alone JS bundle not working
tronidale opened this issue · 1 comments
tronidale commented
Describe the bug
I followed the documentation from botonic website: https://botonic.io/docs/deployment/standalone-js-bundle
My goal is to add a simple chatbot to my spring bot application.
I was able to make it using the guide above. Unfortunately, the route and action is not working.
To Reproduce
Steps to reproduce the behaviour:
- Create a simple action and route it from routes.js
What is the expected behaviour?
It should be able to response from the predefined reply from the action.
action/hi.js
import React from 'react'
import { Text } from '@botonic/react'
export default class extends React.Component {
render() {
return (
<Text>
Hello!
</Text>
)
}
}
routes.js
import Hi from './actions/hi'
export const routes = [
{
path: 'hi',
text: 'hi',
action: Hi
},
]
Screenshots
If applicable, add screenshots to help explain your problem.
About the environment
botonic v0.21.0
Other information
If not using stand-alone JS bundle, route and action works.
Please advise
ykoinika commented
@tronidale - did you manage to figure this out?