ReAdminRBX / roblox-long-polling

Real-Time Roblox Long Polling
MIT License
19 stars 8 forks source link

Getting many errors. #8

Open schoolmoox opened 5 months ago

schoolmoox commented 5 months ago

Getting the error: Error: Cannot find module 'C:\Users\myname\node_modules\roblox-long-polling\index.js'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:437:19) at Module._findPath (node:internal/modules/cjs/loader:705:18) at Module._resolveFilename (node:internal/modules/cjs/loader:1120:27) at Module._load (node:internal/modules/cjs/loader:975:27) at Module.require (node:internal/modules/cjs/loader:1225:19) at require (node:internal/modules/helpers:177:18) at Object. (C:\Users\myname\OneDrive\Desktop\Other Stuff\Python\testcode\JoyousNotableJavabeans\Roblox-L-P\test.js:1:13) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) { code: 'MODULE_NOT_FOUND', path: 'C:\Users\myname\node_modules\roblox-long-polling\package.json', requestPath: 'roblox-long-polling' }

Node.js v18.19.0

RealPlurr commented 2 months ago

Hello its seems like not module issue it's literally says that its invalid package json from your side and thats module is not installed. You can fix that by doing npm i module_name. Next time mind googling issue and not opening issue tab for no reason

ChronoAcceleration commented 2 months ago

Hey there, here to further comment on a issue. It seems one of the pull requests that have been merged from zhiyan114 had caused this error. And to further prove it, I installed an older version of the module and it works like a charm.

You can directly add an older working version to your project with: npm install roblox-long-polling@https://github.com/ReAdminRBX/roblox-long-polling/tree/d9ce7c634b42f963176968c80355e9e3fc3a690e

tungthit commented 1 month ago

Hey there, here to further comment on a issue. It seems one of the pull requests that have been merged from zhiyan114 had caused this error. And to further prove it, I installed an older version of the module and it works like a charm.

You can directly add an older working version to your project with: npm install roblox-long-polling@https://github.com/ReAdminRBX/roblox-long-polling/tree/d9ce7c634b42f963176968c80355e9e3fc3a690e

This works for me too. Thanks!