Hi, I'm getting this error when I run node utils/generate -d 625 on an existing build:
✗ node utils/regenerate -d 625
/Users/username/Sites/projects/art-engine/src/config.js
Regemerating #625
Adding the following to incompatible list 3rd-Eyes Blue Brown Confused Enlightened Green Ka'Vi Sharingan Sketch Sleepy Stars Tears-Lean Tears Tired-Blue Tired-Brown Tired-Green Tired-Ka'Vi Tired-Sketch Void Blunt Bob Calvin Chewing Drool Flipped Geeky Grillz Jr Juul Mouth Nezuko Rage Rave Triangle Troll
No compatible layers in the directory, skipping NO
No compatible layers in the directory, skipping YES
No compatible layers in the directory, skipping NO
No compatible layers in the directory, skipping NO
No compatible layers in the directory, skipping NO
No compatible layers in the directory, skipping NO
/Users/username/Sites/projects/art-engine/src/main.js:416
const filteredDNA = _dna.split(DNA_DELIMITER).filter((element) => {
^
TypeError: _dna.split is not a function
at filterDNAOptions (/Users/username/Sites/projects/art-engine/src/main.js:416:28)
at isDnaUnique (/Users/username/Sites/projects/art-engine/src/main.js:458:20)
at createItem (/Users/username/Sites/projects/art-engine/utils/regenerate.js:64:7)
at regenerateItem (/Users/username/Sites/projects/art-engine/utils/regenerate.js:122:35)
at Command.<anonymous> (/Users/username/Sites/projects/art-engine/utils/regenerate.js:180:5)
at Command.listener [as _actionHandler] (/Users/username/Sites/projects/art-engine/node_modules/commander/lib/command.js:488:17)
at /Users/username/Sites/projects/art-engine/node_modules/commander/lib/command.js:1227:65
at Command._chainOrCall (/Users/username/Sites/projects/art-engine/node_modules/commander/lib/command.js:1144:12)
at Command._parseCommand (/Users/username/Sites/projects/art-engine/node_modules/commander/lib/command.js:1227:27)
at Command.parse (/Users/username/Sites/projects/art-engine/node_modules/commander/lib/command.js:897:10)
The reason appears to be the script is passing an array instead of a string this location. In src/main.js, line 416, if I remove the split function, it works:
before:
const filteredDNA = _dna.split(DNA_DELIMITER).filter((element) => {
after:
const filteredDNA = _dna.filter((element) => {
Hi, I'm getting this error when I run
node utils/generate -d 625on an existing build:The reason appears to be the script is passing an array instead of a string this location. In src/main.js, line 416, if I remove the split function, it works:
before:
after: