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

同时引入skywalking-client-js会报错 #133

Open
dh1021 opened this issue Mar 1, 2024 · 1 comment
Open

同时引入skywalking-client-js会报错 #133

dh1021 opened this issue Mar 1, 2024 · 1 comment

Comments

@dh1021
Copy link

dh1021 commented Mar 1, 2024

我的项目里同时引入了skywalking-client-js,这个库中也重写了XMLHttpRequest。
如果代码先走到了ajax-hook的重写XMLHttpRequest逻辑,再走到skywalking-client-js的重写XMLHttpRequest逻辑,skywalking重写的XMLHttpRequest就是ajax-hook重写后的XMLHttpRequest,这个时候XMLHttpRequest内的方法入参改变了,就会报错。

@DAHUIAAAAA
Copy link
Collaborator

你好,可以使用 codesandbox 给一个复现的地址吗?

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

2 participants