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

pnpm 安装 sentry-uniapp报错 #13

Open
xm-zzf opened this issue Sep 14, 2024 · 7 comments
Open

pnpm 安装 sentry-uniapp报错 #13

xm-zzf opened this issue Sep 14, 2024 · 7 comments

Comments

@xm-zzf
Copy link

xm-zzf commented Sep 14, 2024

pnpm 安装sentry-uniapp 在uniapp 编译会报没有安装依赖 如何兼容pnpm方式来做 不用拍平依赖的方法

@zencodex
Copy link
Member

可以自己放到 uni_modules 里,注意引用路径

找不到,应该工程目录结构有问题,你可以用代码里的 uapp-demo 对比下

@limuen
Copy link

limuen commented Sep 14, 2024

可以自己放到 uni_modules 里,注意引用路径

找不到,应该工程目录结构有问题,你可以用代码里的 uapp-demo 对比下

目前我也遇到了,报sentry/type,sentry/core,sentry/utils错误。

让放到uni_module里面? 我们工程目录里面都没有找到这个文件 emmmm

@zencodex
Copy link
Member

image

安装完 node_modules 里是这样一个结构, sentry/type,sentry/core,sentry/utils 都在里,可以核对下

@limuen
Copy link

limuen commented Sep 18, 2024

image 安装完 node_modules 里是这样一个结构, `sentry/type,sentry/core,sentry/utils` 都在里,可以核对下

哈喽,刚测试了一下uapp-demo,pnpm安装不行,只能npm安装,但是新工程目录使用的pnpm emmmm

@limuen
Copy link

limuen commented Sep 18, 2024

忘了回复了,上午留言完经过佬wx上的指导,已成功对接 🌹

@edk24
Copy link

edk24 commented Nov 13, 2024

忘了回复了,上午留言完经过佬wx上的指导,已成功对接 🌹

怎么解决的? 给个指导, 我也是用pnpm报了这个问题

@edk24
Copy link

edk24 commented Nov 13, 2024

我先用 npm 用上了

以下是我的依赖

"sentry-uniapp": "^1.0.12"
"@sentry/core": "^8.38.0",
"@sentry/utils": "^8.38.0",
"tslib": "^2.8.1",

// 开发依赖 (ts)
"@sentry/types": "^8.38.0"

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

4 participants