#SyntaxError: Named export 'autocomplete' not found. The requested module '@algolia/autocomplete-js'

4 messages · Page 1 of 1 (latest)

solemn sonnet
#

This is only happening in preview after build. Everything works fine in dev. I'm guessing it's a problem with the build. This is what a get as a response for a page that isn't using algolia. The path is localhost:3000/order/. In the files it's pages/order/index.astro. The page only has a h1 saying hello. It's not a static page.

Algolia is used in another page inside a preact component and works fine even in prod.

solemn sonnet
#

I fixed it

#

astro didn't like pages/order/index.astro for some reason

#

changed it to pages/order.astro and it was happy