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:
- Created 7 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did test the
Array.isArray
and the specs result in the same.Array.isArray
is much better anyhow.I think is resolved. If there is a prob with 2.0.1 or 1.7.2 then we can re-open