Autocomplete Import issue in Wordpress

Hi, when I’m trying to integrate autocomplete in my wordpress website… I’m getting the “uncaught SyntaxError: Cannot use import statement outside a module”. Can you help me on this?

Hi @rayrutjes, can you help me on this?

Hi @pikmybook

This is a very common Javascript error. You need to specify “type: module” in the package.json of your Javascript project.