安装了whsile.script 但是使用的时候报错
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 274
- PR merge metrics
- No merged PRs in 30d
Description
使用命令安装whistle.script npm i -g whistle.script --registry=https://registry.npm.taobao.org
然后打开lightproxy,点击插件中的scrpit 报错
TypeError: Cannot destructure property 'getReceiver' of 'options.wsParser' as it is undefined.
at module.exports (/usr/local/lib/node_modules/whistle.script/lib/wsServer.js:19:11)
at module.exports (/usr/local/lib/node_modules/whistle.script/lib/server.js:31:3)
at /Users/dk/Library/Application Support/LightProxy/files/node/node_modules/whistle/lib/plugins/load-plugin.js:1159:9
at Server. (/Users/dk/Library/Application Support/LightProxy/files/node/node_modules/hagent/lib/get-server.js:37:7)
at Object.onceWrapper (events.js:421:28)
at Server.emit (events.js:315:20)
at emitListeningNT (net.js:1352:10)
at processTicksAndRejections (internal/process/task_queues.js:79:21)

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the npm installation and opening the Script plugin in LightProxy. Read whistle.script/lib/wsServer.js and lib/server.js alongside LightProxy's load-plugin.js and hagent/lib/get-server.js, which appear in the stack trace, to compare the expected wsParser options. Done means the plugin loads without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100