[bug]: Lastest version of algoliasearch doesn't function on React Native apps
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react-native, typescript
- 领域
- mobile
调研方向
首先,在使用 5.23.4 和 5.24.0 版本的 algoliasearch/lite 和 algoliasearch import 的 React Native 应用中复现初始化失败。检查 package 入口点和运行时导出;当两个客户端都能正确初始化,并且文档中记录的导出在 React Native 中正常工作时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description
When I upgrade algoliasearch in my app from 4.24.0 to 5.23.4, both the lite client and the normal client throw exceptions on initialization. Does algolia 5.x not work with React Native?
It seems to be the case:
Lite version
import { liteClient } from "algoliasearch/lite";
const client = liteClient(ALGOLIA_CONFIG.appId, algoliaToken);
Throws:
TypeError: 0, _clientCommon.createNullLogger is not a function (it is undefined) (browser.js 265:29)
Full version
import { algoliasearch } from "algoliasearch";
const client = algoliasearch(ALGOLIA_CONFIG.appId, algoliaToken);
In this case, algoliasearch isn't even exported correctly at runtime (its types say it's available via ESM).
It Throws:
TypeError: 0, _algoliasearch.algoliasearch is not a function (it is undefined)
Ideally, I would like to use the non-lite version because we want to log engagement events back to algolia, and I don't think that is supported in the lite version. Please advise if this is a bug or if this sdk version isn't available for React Native
Client
Search
Version
5.23.4, 5.24.0
- 主要语言
- TypeScript
- 星标
- 1.4k
- 派生
- 227
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
algolia/algoliasearch-client-javascript 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
algolia/algoliasearch-client-javascript#1583 · 14 条评论 · 9 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 38/100
-
[bug]: Algolia JS Client cause `Bun` to crash on `Hono`可能重新可做 @PrevailUgah 于 238 天前认领,目前没有进行中的 PR。 未关闭bug
难度 4/5 3-5 天 新手友好度 35/100
algolia/algoliasearch-client-javascript#1601 · 5 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
-
bug
难度 3/5 1-2 天 新手友好度 45/100
algolia/algoliasearch-client-javascript#1594 · 4 条评论 ·
查看 algolia/algoliasearch-client-javascript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
volcengine/OpenViking#8432 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
jupyterlab/eslint-plugin#178 · 2 条评论 ·
-
bug from-app needs-triage
难度 2/5 1-3 小时 新手友好度 65/100
nightly-labs/openbot#16303 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100