Skip to content

Getting botonic not defined which adding the script in index.html after hub deployment #2875

@saketjiva

Description

@saketjiva

Below is my html and everything is working fine on http://localhost:8081/ but while embedding the script to html nothing working.
In console getting error as
Uncaught ReferenceError: process is not defined
at 27218 (webchat.botonic.js:2:376700)
at webpack_require (webchat.botonic.js:2:1988702)
at 74575 (webchat.botonic.js:2:383772)
at webpack_require (webchat.botonic.js:2:1988702)
at 307 (webchat.botonic.js:2:413351)
at webpack_require (webchat.botonic.js:2:1988702)
at 74775 (webchat.botonic.js:2:506025)
at webpack_require (webchat.botonic.js:2:1988702)
at webchat.botonic.js:2:1990148
at webchat.botonic.js:2:1990241

<title>Hotel Bot</title> <script type="text/javascript" src="https://hotel-76511a5f-2262-4a5a-9c0e-913b96b09dfd.netlify.app/webchat.botonic.js"></script>
<script type="text/javascript"> document.addEventListener('DOMContentLoaded', function (event) { // Ensure Botonic is loaded before calling render if (typeof Botonic !== 'undefined') { Botonic.render(document.getElementById('root'), { appId: 'e7bfeedf-0944-478e-8263-4546baddb170' // visibility: 'dynamic', // Uncomment for enable dynamic settings (Botonic +0.12.0). }); } else { console.error('Botonic is not defined. Please check the script URL and network.'); } }); </script>

Please help me on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions