Is it safe to update from Nuxt3 to Nuxt4 with this module?
Nuxt4 was just realeased. I'd like to update a client's project but I wonder if algolia module will break or not.
It is an important project that's in production already.
Hey Buddy,
To be honest, there was no work on porting or migrating the module to Nuxt 4. I think the module should work but the best would be to actually test it on your specific project to make sure that it works correctly.
Maybe someone else have tried it already?
I have tried and, although the module seems to work fine, it seems that a peer dependency (algoliasearch-helper) is breaking it: https://github.com/nuxt-modules/algolia/issues/232
Same result here as kecoma1. The module works but when I wanna use agolas components I get the error
The requested module '/_nuxt/@fs/.../.pnpm/[email protected][email protected]/node_modules/algoliasearch-helper/index.js?v=c7013610' does not provide an export named 'default'
In orderer to give a little more context here... 😉
- actual file from algolia package: https://github.com/algolia/instantsearch/blob/master/packages/algoliasearch-helper/index.js
- I noticed that this file is written in CJS
- With Nuxt4.0 there where some changes to to how CJS files are handles (see: release notes => Refactor => Remove legacy require utils)
I think that this issue is caused upstream and not by this module.
I already created a discussion in the algolia Repo, as I had some trouble to implement in a modern vue environment.
https://github.com/algolia/instantsearch/discussions/6760