pollSync error
I just started the bot and I get this error by default
C:\Users\Charl\OneDrive\Escritorio\Rox\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10
AbortSignal.abort().reason.constructor
^
TypeError: Cannot read properties of undefined (reading 'constructor')
at Object.<anonymous> (C:\Users\Charl\OneDrive\Escritorio\Rox\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10:29)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\Charl\OneDrive\Escritorio\Rox\node_modules\@sapphire\utilities\dist\index.js:38:19)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
C:\Users\Charl\OneDrive\Escritorio\Rox\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10
AbortSignal.abort().reason.constructor
^
TypeError: Cannot read properties of undefined (reading 'constructor')
at Object.<anonymous> (C:\Users\Charl\OneDrive\Escritorio\Rox\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10:29)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\Charl\OneDrive\Escritorio\Rox\node_modules\@sapphire\utilities\dist\index.js:38:19)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
8 Replies
Do I need a version of node greater than 16?
Yes, Node.js v14 wasn't supported for a long time.
for confirming
Node 14 is EOL and it's a security issue to still use it.
Hello
I have the same error :
Node Version : v16.11.0
F:\DiscordBot\ig-bot\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10
AbortSignal.abort().reason.constructor
^
TypeError: Cannot read properties of undefined (reading 'constructor')
at Object.<anonymous> (F:\DiscordBot\ig-bot\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10:29)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (F:\DiscordBot\ig-bot\node_modules\@sapphire\utilities\dist\index.js:38:19)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
F:\DiscordBot\ig-bot\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10
AbortSignal.abort().reason.constructor
^
TypeError: Cannot read properties of undefined (reading 'constructor')
at Object.<anonymous> (F:\DiscordBot\ig-bot\node_modules\@sapphire\utilities\dist\lib\pollSync.js:10:29)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (F:\DiscordBot\ig-bot\node_modules\@sapphire\utilities\dist\index.js:38:19)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
Update to Node 18
Node 16 is EOL at the end of this very month
Ok I'll try, thanks
Maybe it would be interesting to update the doc
ah
yeah
This has been fixed in the guide