-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Using Chrome 109.0.5414.87; Firefox 110.0b2 (64-bit); Safari 16.0:
Using "example.html" as is:
Uncaught SyntaxError: import declarations may only appear at top level of a module
Uncaught ReferenceError: Autocomplete is not defined
<anonymous> file:///...../bootstrap-5-autocomplete/example/example.html:23
When using a web server I believe the "import declarations" can be fixed by changing:
<script src="../autocomplete.js"></script>
to
<script type="module" src="../autocomplete.js"></script>
However, trying to access "Autocomplete" from javascript in the main document (<script> inside <body>) still returns "Autocomplete is not defined".
Suggestions?
NoSkillGuy and heavybootsxi
Metadata
Metadata
Assignees
Labels
No labels