Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stand-alone JS bundle not working #2617

Open
tronidale opened this issue Sep 18, 2023 · 0 comments
Open

Stand-alone JS bundle not working #2617

tronidale opened this issue Sep 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tronidale
Copy link

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:

  1. 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.
image

About the environment
botonic v0.21.0

Other information
If not using stand-alone JS bundle, route and action works.

Please advise

@tronidale tronidale added the bug Something isn't working label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant