question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read properties of undefined (reading 'path')

See original GitHub issue

Attempting to generate any amount of images, “node index.js” is sent into terming. A few images get made with a DNA and then this error pops up:

C:\Users\Patch\OneDrive\Desktop\doggo\NFT GENERATOR\src\main.js:181 const image = await loadImage(${_layer.selectedElement.path});
^

TypeError: Cannot read properties of undefined (reading ‘path’)
at C:\Users\Patch\OneDrive\Desktop\doggo\NFT GENERATOR\src\main.js:181:61 at new Promise (<anonymous>) at loadLayerImg (C:\Users\Patch\OneDrive\Desktop\doggo\NFT GENERATOR\src\main.js:180:10) at C:\Users\Patch\OneDrive\Desktop\doggo\NFT GENERATOR\src\main.js:361:31 at Array.forEach (<anonymous>) at startCreating (C:\Users\Patch\OneDrive\Desktop\doggo\NFT GENERATOR\src\main.js:360:17) at C:\Users\Patch\OneDrive\Desktop\doggo\NFT GENERATOR\index.js:6:3 at Object.<anonymous> (C:\Users\Patch\OneDrive\Desktop\doggo\NFT GENERATOR\index.js:7:3) at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:17

github_iconTop GitHub Comments

14reactions
Happyprince65commented, Dec 17, 2021

you can’t use “-” in any image name

0reactions
jamestailor91commented, Apr 7, 2022

you can’t use “-” in any image name

Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read properties of undefined (reading 'path')
I'm attempting to generate NFTs using this code but keep getting cannot read properties of undefined reading path, if anyone knows of a...
Read more >
Uncaught typeerror: cannot read properties of ... - CodeProject
Usually this means a variable that you're referencing has a value of undefined when you try to read the property (as the error...
Read more >
typeerror: cannot read properties of undefined (reading 'path')
Fix the imports. You're importing BrowserRouter as Routes . import { BrowserRouter as Router, Routes, ...
Read more >
Cannot read property 'path' of undefined - Cloudinary Support
Cannot read property 'path' of undefined. Follow. Avatar. Roman Armin Rostock. 3 months ago. I'm getting this error even though multer logged the...
Read more >
Cannot read properties of undefined (reading 'path')-mongodb
[Solved]-undefined TypeError: Cannot read properties of undefined (reading 'path')-mongodb ... so you're passing the FormData as the config object. You cannot mix ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found