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.

Latest update results in: Cannot read property 'constructor' of undefined with angularJs project

See original GitHub issue
/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/gulp-sourcemaps/index.js:156
              } else if (ast[key].constructor === Array) {
                                 ^
TypeError: Cannot read property 'constructor' of undefined
    at registerTokens (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/gulp-sourcemaps/index.js:156:34)
    at registerTokens (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/gulp-sourcemaps/index.js:158:19)
    at registerTokens (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/gulp-sourcemaps/index.js:155:17)
    at DestroyableTransform.sourceMapInit [as _transform] (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/gulp-sourcemaps/index.js:164:9)
    at DestroyableTransform.Transform._read (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:159:10)
    at DestroyableTransform.Transform._write (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:147:83)
    at doWrite (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:313:64)
    at writeOrBuffer (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:302:5)
    at DestroyableTransform.Writable.write (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:241:11)
    at write (/home/httpd/vhosts/amy-468.my.daisycon.com/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nmccreadycommented, Oct 11, 2016

I did test the Array.isArray and the specs result in the same. Array.isArray is much better anyhow.

0reactions
nmccreadycommented, Oct 12, 2016

I think is resolved. If there is a prob with 2.0.1 or 1.7.2 then we can re-open

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug(pipes): cannot read property 'constructor' of undefined ...
A workaround is to add a condition on element using pipe, to display it only when component onInit has been called. In ProfileComponent.ts...
Read more >
[SOLVED] Cannot Read Property 'constructor' of Undefined in JS
The “cannot read property 'constructor' of undefined” error occurs when you attempt to access the constructor property of a variable that is ...
Read more >
ERROR TypeError: Cannot read properties of undefined ...
The serive.book property is undefined because it doesn't have an initial value. So in your service, just initialize the book property like ...
Read more >
Resolving the JavaScript Promise Error "TypeError: Cannot ...
TypeError - Cannot read property 'then' of undefined is thrown when the caller is expecting a Promise to be returned and instead receives ......
Read more >
How to Avoid the Infamous "Cannot read properties of ... - Bitovi
That error message is telling you the function is returning undefined implicitly, but its return type does not include undefined in it. Awesome!...
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