HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 695 forks source link

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'layers' of undefined #114

Open bkhoward2001 opened 2 years ago

bkhoward2001 commented 2 years ago

I am getting the following error and need some help:

PS E:\NTF\generative-art-opensource-3> node index.js (node:6436) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'layers' of undefined at createDna (E:\NTF\generative-art-opensource-3\index.js:119:17) at startCreating (E:\NTF\generative-art-opensource-3\index.js:148:18) at Object. (E:\NTF\generative-art-opensource-3\index.js:180:1) at Module._compile (internal/modules/cjs/loader.js:1072:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) at Module.load (internal/modules/cjs/loader.js:937:32) at Function.Module._load (internal/modules/cjs/loader.js:778:12) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) at internal/main/run_main_module.js:17:47

Not sure how to fix... I am not an experienced coder. Thank you.

Ponda1 commented 2 years ago

Refer to issue #38

bkhoward2001 commented 2 years ago

I am using version 3....

tobeliten commented 2 years ago

I am using version 3....

did you find a solution?

bkhoward2001 commented 2 years ago

I am using version 3....

did you find a solution?

No not yet