wAIfu-DEV / w-AI-fu_v2

Best way to create your own AI Vtuber/Streamer ! (Openai or NovelAI)
https://www.youtube.com/@Hilda-AI-VTuber
GNU General Public License v3.0
8 stars 3 forks source link

BUG: App threw an error during load #59

Closed SaturnFiveLive closed 7 months ago

SaturnFiveLive commented 7 months ago

Describe the bug When launching, the following error is produced

App threw an error during load TypeError: Cannot read properties of undefined (reading 'autoPong') at new WebSocket (C:\Users\User\Downloads\Vtuber\node_modules\ws\lib\websocket.js:87:32) at Object. (C:\Users\User\Downloads\Vtuber\source\app\closed_captions\stream_captions.js:30:28) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/node_init:2:13357) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object. (C:\Users\User\Downloads\Vtuber\source\app\closed_captions\closed_captions.js:29:27)

To Reproduce I followed the installation instructions installing python 3.10.x, cuda 10.1 and build tools including desktop development. Ran install.bat and attempted to launch the program.

Expected behavior The program to launch I checked the requirements.txt and manually checked that each module was installed.

Screenshots

image
Kisahime commented 7 months ago

Gotta go in the package.json file, and change the "ws": "^8.14.2" to "ws": "8.14.2" After having done that, delete the node_modules and run INSTALL.bat again to reinstall the dependencies Screenshot 2024-02-15 220330

xxandeer commented 7 months ago

I understand the technical difference between the caret (^) and the exact version, but I'm curious about the specific reason behind this change. Can you explain what impact or difference you expect this modification to have on the project or its dependencies?

On Thu, Feb 15, 2024 at 11:07 PM Kisahime @.***> wrote:

Gotta go in the package.json file, and change the "ws": "^8.14.2" to "ws": "8.14.2" After having done that, delete the node_modules and run INSTALL.bat again to reinstall the dependencies Screenshot.2024-02-15.220330.png (view on web) https://github.com/wAIfu-DEV/w-AI-fu_v2/assets/120521433/c1472fc9-2f13-4d9a-a8fc-6fe33870e566

— Reply to this email directly, view it on GitHub https://github.com/wAIfu-DEV/w-AI-fu_v2/issues/59#issuecomment-1947417028, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJQTEIFBACZ62CRQIHCZLZDYT2BKHAVCNFSM6AAAAABDK7U37KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGQYTOMBSHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

wAIfu-DEV commented 7 months ago

new versions of the ws package introduced a bug that breaks compatibility with the expected behaviour, removing the ^ forces npm to install an older but working version.

SaturnFiveLive commented 7 months ago

Thank you