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
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
What am I missing here?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
S-IaF
Sapphire - Imagine a Framework
Sapphire is a next-gen object-oriented Discord.js bot framework.