We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
本地使用Strophe.js组件正常,使用npm install Strophe.js命令引入,打包后使用服务器则报错
本地正常情况会发出长轮询 打包后提示
The text was updated successfully, but these errors were encountered:
通过对比打包前与本地的代码,发现引入了mock.js后,浏览器new XmlHttpRequest时,调用的是mock.js里的方法,不知是什么原因,可能是加载机制的问题。Strophe.js是基于XmlHttpRequest发起请求的,因此去除mock.js的相关依赖和代码就可以了。
Sorry, something went wrong.
No branches or pull requests
Bug report(问题描述)
本地使用Strophe.js组件正常,使用npm install Strophe.js命令引入,打包后使用服务器则报错
Screenshot or Gif(截图或动态图)
本地正常情况会发出长轮询
打包后提示
The text was updated successfully, but these errors were encountered: