Lemons
SIASapphire - Imagine a framework
•Created by Lemons on 9/5/2024 in #sapphire-support
TypeError: Cannot convert undefined or null to object
I get this error after trying to run my build (Typescript) - it only happened when I updated my typescript package to 5.5.4
What am I missing here?
C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2765
this.enumKeys = Object.keys(enumShape).filter((key) => {
^
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at new NativeEnumValidator (C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2765:28)
at _Shapes.nativeEnum (C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:3113:12)
at Object.<anonymous> (C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@discordjs\builders\dist\index.js:1665:24)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
Node.js v20.15.0
C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2765
this.enumKeys = Object.keys(enumShape).filter((key) => {
^
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at new NativeEnumValidator (C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2765:28)
at _Shapes.nativeEnum (C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:3113:12)
at Object.<anonymous> (C:\Users\Lemons\Documents\GitHub\Pixie-beta(typescript)\node_modules\@discordjs\builders\dist\index.js:1665:24)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
Node.js v20.15.0
11 replies