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.

Unhandled rejection TypeError: Cannot read property '0' of undefined

See original GitHub issue

When I try to run the build process with webpack I am having this error:

Unhandled rejection TypeError: Cannot read property '0' of undefined
    at Object.transform (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/webpack/prod.config.js:83:42)
    at Compiler.<anonymous> (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/webpack-stats-plugin/lib/stats-writer-plugin.js:74:32)
    at Compiler.next (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/tapable/lib/Tapable.js:69:14)
    at /Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/html-webpack-plugin/index.js:203:9
    at PassThroughHandlerContext.finallyHandler (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/finally.js:55:23)
    at PassThroughHandlerContext.tryCatcher (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/promise.js:510:31)
    at Promise._settlePromise (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/promise.js:567:18)
    at Promise._settlePromise0 (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/promise.js:691:18)
    at Async._drainQueue (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/async.js:138:16)
    at Async._drainQueues (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/async.js:148:10)
    at Immediate.Async.drainQueues (/Users/matheus/Development/jusbrasil_projects/deadpool-dashboard/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:574:20)
    at tryOnImmediate (timers.js:554:5)
    at processImmediate [as _immediateCallback] (timers.js:533:5)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ryan-roemercommented, Nov 2, 2016

haha, no worries. And ❤️ git bisect

0reactions
matheusrocha89commented, Jan 5, 2017

@morajabi Check your webpack configuration, my problem was that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unhandled Rejection (TypeError): Cannot read property '0' of ...
The parsed JSON probably doesn't have a results property, so trying to access 0 on that will give rise to your error. You...
Read more >
Unhandled Rejection (TypeError): Cannot read property '0' of ...
Hey @charleskallick4619, The error message is basically saying that track.artist is undefined. You are using track.**artist** instead of track.
Read more >
How To Fix Cannot read Property '0' of Undefined in JS
To resolve your TypeError: Cannot read properties of undefined (reading '0') , go through these steps: Ensure you are using the correct ...
Read more >
TypeError: Cannot read Property '0' of Undefined in JS
The "Cannot read property '0' of undefined" error occurs when trying to access the 0th index in a variable that stores an undefined...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
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