lekoala / bootstrap5-autocomplete

Autocomplete for Bootstrap 5 (and 4!)
MIT License
87 stars 16 forks source link

Getting Uncaught SyntaxError: Unexpected token 'export' (at autocomplete.min.js:1:8891) #9

Closed jaimefuhr closed 1 year ago

jaimefuhr commented 1 year ago

Tried the latest and one version back. Getting these two errors with the latest version:

Uncaught SyntaxError: Unexpected token 'export' (at autocomplete.js:1:880).

line 880: export default Autocomplete;

My code:

Autocomplete.init("input.autocomplete", { liveServer: "/services/CustomerLookup.ashx", suggestionsThreshold: 3, valueField: "value", labelField: "label", highlightTyped: true, onSelectItem: console.log });

jaimefuhr commented 1 year ago

I forgot to include type="module" to the script reference.