coze-dev / coze-dev/coze-studio
Bug: 集成到 RN 中,使用 webview 的方式,报错 CozeWebSDK is not defined
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
1.2.0-beta.14 版本,cdn 引入
直接在浏览器打开是正常的。
但是在 RN 中报错 CozeWebSDK is not defined,切换版本到 1.1.0-beta.3 是正常的。但是 1.1.0-beta.3 不支持语音输入功能
**To Reproduce**
Steps to reproduce the behavior:
白屏,报错信息显示 CozeWebSDK is not defined
**Expected behavior**
期望 1.2.0-beta.14 能正常使用。
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Version:**
Please provide the version of {project_name} you are using.
**Environment:**
System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 111.22 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.14.0 - ~/Library/Caches/fnm_multishells/97135_1751349310124/bin/node
npm: 10.9.2 - ~/Library/Caches/fnm_multishells/97135_1751349310124/bin/npm
pnpm: 10.7.1 - ~/Library/Caches/fnm_multishells/97135_1751349310124/bin/pnpm
bun: 1.0.0 - ~/.bun/bin/bun
Browsers:
Chrome: 131.0.6778.70
Safari: 17.5
**Additional context**
https://github.com/coze-dev/coze-js/issues/279
Contributor guide
Assessment
This issue has not been assessed yet.