-
Notifications
You must be signed in to change notification settings - Fork 401
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
vm2 (via pac-proxy-agent) causes build failures in webpack #266
Comments
@srubin FYI |
I ran into the same issue when trying to upgrade from 4.33.0 to 4.34.0. It appears this might be due to the superagent update that was listed in the PubNub JS SDK changelog for 4.34.0. We're using webpack to package our Node.js lambda which uses PubNub JS SDK and this prevents us from upgrading to any version of the PubNub JS SDK beyond 4.33.0. |
I face the same issue, for Serverless functions, for example, AWS Lambda my TypeScript compiles it in a single file, so it doesn't work, because of the following flow:
It has taken me a while to figure this out. This is very important. I can't use the latest version |
I have found a work-around for this issue, but it's pretty ugly. What I do is copy I hope that this issue gets a real resolution soon. |
Also seeing the same issues and we need to update the SDK because of some high severity security issues: https://www.cve.org/CVERecord?id=CVE-2021-23406 |
Similar to @patela, but i added the files to my webpack config, so at least the files are bundled. Ideally we wouldn't need to do this.
|
I have a library that uses Pusher and I want to replace it with PubNub and I run into this issue when I use the library with PubNub. |
Is there any plan to fix this issue? This is a critical third-party component vulnerability. |
Hi! Yes the PR #331 was merged successfully which addresses the severe vulnerability warnings for vm2 usage: https://security.snyk.io/vuln/SNYK-JS-VM2-5537100 |
We recently attempted to upgrade our version of pubnub but we're blocked by similar issues to the one highlighted by:
#239
In our case, vm2 makes a call to
require(coffee-script)
and attempts to callreadFileSync
on a file calledbridge.js
that it supplies both of which cause our build to fail.It looks like we should be able to work around it by patching out the dependency on pac-proxy-agent. Basically, I have two questions:
Edit: we're currently on 4.29.7, we've attempted to upgrade to a couple of different versions but any greater version than our current version caused these issues.
The text was updated successfully, but these errors were encountered: