-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: We are trying to upgrate too newest version but from 5.2.5 forward we cant build the application. #1576
Comments
Hey, the v5 uses package.json#exports field to specify the bundle to pick, however I believe this is only supported in webpack v5 (as per webpack/webpack#9509).
I believe using the umd build directly with |
Hey, I tried it, and it’s working now, but it required a few adjustments. Using the UMD build as you suggested with:
did the trick. Thanks for pointing that out! |
nice!! enjoy :) |
Hay we just found that recommendations stop working.
Do you know if there is some known issue. |
Description
I have been trying to upgrade to the latest version as was suggested to use it to resolve issues with personalization. But when I try to upgrade from "algoliasearch": "^4.24.0". to algoliasearch: 5.18.0 the application can't build.
Our application is magento/pwa-studio v10
webpack v4
node: v14.21.3
I start bumping the versions one by one. The first issue appears on: algoliasearch: 5.2.5 until "algoliasearch": "5.9.0"
From "algoliasearch": "5.9.0" the same error that we have with 5.18.0 start to appear.
So to fix this issue I try to set a custom rule in webpack for the algolia packages.
I managed to get the build to succeed, but the search functionality isn’t working because is throws error for:
The file that is using is the node_modules/@algolia/requester-node-http/dist/requester.http.cjs:79:19
I tried changing the import, but it didn’t work.
import { algoliasearch } from 'algoliasearch/dist/browser';
Client
Search
Version
5.18.0
Relevant log output
No response
The text was updated successfully, but these errors were encountered: