You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
ERROR in ./node_modules/algoliasearch/dist/lite/builds/node.cjs
Module not found: Error: Can't resolve '@algolia/client-common' in '/Users/pavelkostadinov/Projects/work/secretsales-pwa/node_modules/algoliasearch/dist/lite/builds'
ERROR in ./node_modules/algoliasearch/dist/lite/builds/node.cjs
Module not found: Error: Can't resolve '@algolia/requester-node-http' in '/Users/pavelkostadinov/Projects/work/secretsales-pwa/node_modules/algoliasearch/dist/lite/builds'
From "algoliasearch": "5.9.0" the same error that we have with 5.18.0 start to appear.
ERROR in ./node_modules/@algolia/client-common/dist/common.cjs 331:7
Module parse failed: Unexpected token (331:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| // src/transporter/errors.ts
| var AlgoliaError = class extends Error {
> name = "AlgoliaError";
| constructor(message, name) {
| super(message);
So to fix this issue I try to set a custom rule in webpack for the algolia packages.
secretsales-pkostadinov
changed the title
[bug]: We are trying to upgrate too newest version but from 5.2.5 we cant build the application.
[bug]: We are trying to upgrate too newest version but from 5.2.5 forward we cant build the application.
Dec 31, 2024
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: