Skip to content
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: rebuild npm in wechat mini program show "@coze/api/dist/cjs/index.cjs.js: Npm package entry file not found" #80

Open
Jonas0119 opened this issue Jan 12, 2025 · 0 comments

Comments

@Jonas0119
Copy link

Environment

微信小程序开发环境

"dependencies": {
"@coze/api": "^1.0.17",
"@coze/realtime-api": "^1.0.4"
}

尝试在微信小程序中集成RTC-SDK,但是在微信小程序中“构建npm”时出现如下错误:

  1. C:\learn_cursor\coze-js-mobile\examples\voice-wechat/node_modules/@coze/api/dist/cjs/index.cjs.js: Npm package entry file not found
  2. C:\learn_cursor\coze-js-mobile\examples\voice-wechat/node_modules/@coze/realtime-api/node_modules/@coze/api/dist/cjs/index.cjs.js: Npm package entry file not found
  3. C:\learn_cursor\coze-js-mobile\examples\voice-wechat/node_modules/@coze/realtime-api/dist/cjs/index.cjs.js: Npm package entry file not found

不知道是不是bug,是不是咱们SDK不能在微信小程序中是使用?辛苦帮忙看看

Steps To Reproduce

  1. npm install @coze/realtime-api @coze/api
  2. 微信小程序执行“重构npm”

Link to code example:

The current behavior

The expected behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant