alibaba / anyproxy

A fully configurable http/https proxy in NodeJS
http://anyproxy.io
Apache License 2.0
7.75k stars 1.21k forks source link

not work with vue-cli #576

Open wangbl11 opened 3 years ago

wangbl11 commented 3 years ago

Plese fill the template when you reporting a new issue, thanks!

用vue-cli创建了一个vue应用,在main.js中刚刚引入了require('anyproxy'),无法启动 Uncaught ReferenceError: Invalid left-hand side in assignment at eval (forge.js?87e6:52) at eval (forge.js?87e6:94) at Object../node_modules/node-easy-cert/node_modules/node-forge/js/forge.js (chunk-vendors.js:12567) at webpack_require__ (app.js:854) at fn (app.js:151) at eval (certGenerator.js?f9c4:3) at Object../node_modules/node-easy-cert/dist/certGenerator.js (chunk-vendors.js:12431) at webpack_require__ (app.js:854) at fn (app.js:151) at Object.eval (index.js?f34f:8)

Which platform are you running AnyProxy

mac

The version of the AnyProxy

4.1.3

Your expected behavior of AnyProxy

The actual behavior of AnyProxy

The log of the error

godofcc commented 3 years ago

貌似是node-forge的问题,他们这个问题在0.7.0以后就修了,我把node-forge删了后,直接更新到最新的就可以了。你这边也可以试一下

ericheshenghao commented 2 years ago

同样的问题