Closed OvidijusParsiunas closed 12 months ago
SOLUTION: Use one of the following approaches to fix build issue you are experiencing:
<script>
tag to the <head>
element:
<script type="module" src="https://unpkg.com/deep-chat@1.1.20/dist/deepChat.bundle.js" ></script>
Please note that scripts can take time to download, so if you are seeing problems with your properties not being applied in time, we advise you to attach an onload
listener to the <script>
tag so you can conditionally render the <deep-chat>
code when it loads. You can achieve this by; giving the <script>
an id
, searching for it using document.getElementById
and then adding onload
to the result element. Check a live example for this in Vue 2.If you are experiencing other problems or have your own solutions, do not hesitate to comment below or create a new issue.
After importing Deep Chat - some projects that target older versions of JavaScript or use specific configurations can encounter new build errors.