RarityData utils not working #234
Unanswered
cryptofannatic
asked this question in
Help + Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting this error when i run node utils/rarityData.js
`Shaambhav@MacBook-Air art-engine-nested-folder-structure % node utils/rarityData.js
/Users/Shaambhav/Desktop/mine/art-engine-nested-folder-structure/src/config.js
/Users/Shaambhav/Desktop/mine/art-engine-nested-folder-structure/utils/rarityData.js:133
rarityDataTraits.elements.forEach((rarityDataTrait) => {
^
TypeError: Cannot read properties of undefined (reading 'elements')
at /Users/Shaambhav/Desktop/mine/art-engine-nested-folder-structure/utils/rarityData.js:133:24
at Array.forEach ()
at /Users/Shaambhav/Desktop/mine/art-engine-nested-folder-structure/utils/rarityData.js:126:6
at Array.forEach ()
at Object. (/Users/Shaambhav/Desktop/mine/art-engine-nested-folder-structure/utils/rarityData.js:121:6)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)`
How do i fix this?
Beta Was this translation helpful? Give feedback.
All reactions