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

[Help] How can I use this package as a javascript module? #270

Open
retzero opened this issue Nov 17, 2024 · 0 comments
Open

[Help] How can I use this package as a javascript module? #270

retzero opened this issue Nov 17, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@retzero
Copy link

retzero commented Nov 17, 2024

Help Description:

Hello.
I'm trying to embed this nice package in my project.
Can you please guide me how to initialize it with javascript script tag?
I tried below but failed.

    <title>React App</title>
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>

+  <script type="module">
+    import reactChatbotify from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'
+    reactChatbotify();
+  </script>

  </body>
</html>

Library version:
Specify the version of the library (e.g. 1.7.0).

Additional context:
Add any other context about the problem here (e.g. plugins used, if any)

@retzero retzero added the help wanted Extra attention is needed label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants