alibaba / alibaba/anyproxy

初始化服务器的时候报错 Browser is not defined

Open
#368 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

我把anyproxy作为模块引入到electronjs里头,报了这个错误。。。我想问下,这个brotli在anyproxy里是做什么用的?

ReferenceError: Browser is not defined
at Va (/app/node_modules/brotli/build/encode.js:49:191)
at Object. (/app/node_modules/brotli/build/encode.js:50:304)
at Module._compile (module.js:685:30)
at Object.Module._extensions..js (module.js:702:10)
at Module.load (module.js:598:32)
at tryModuleLoad (module.js:538:12)
at Function.Module._load (module.js:530:3)
at Module.require (module.js:629:17)
at require (internal/module.js:11:18)
at Object. (/app/node_modules/brotli/compress.js:1:76)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing server initialization when anyproxy is imported into Electron, then inspect node_modules/brotli/build/encode.js at the reported line and node_modules/brotli/compress.js. Determine why Browser is undefined in this environment and identify the role of brotli in anyproxy. Done means initialization no longer raises this error and the affected behavior is covered by a reproducible check.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, nodejs
Domain
backend, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.