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 property 'Angular' of undefined

See original GitHub issue

I tried to use the Sentry library for AngularJS. Followed the instructions in the website and got the error: TypeError: Cannot read property 'Angular' of undefined

on the line that says: .addPlugin(Raven.Plugins.Angular)

I would provide a fiddle but since our code structure relies on RequireJS it is quite hard to reproduce.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
alejandromagnorskycommented, Nov 6, 2017

I was just following the instructions from the docs though. Thanks, using .addPlugin(RavenAngular) fixes the issue.

0reactions
kamilogorekcommented, Nov 6, 2017

Instructions work, if you use them with script tags (as presented there), not while using RequireJS loaders. Glad it helped 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 5 - "Cannot read property of undefined" - Stack Overflow
In Type script this means to declare a property of type {} with no value initialized. It is the same as: techSpecMeta: Object;....
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined. Undefined means that a variable has been declared but has not been assigned a value....
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 >
cannot read properties of undefined angular - You.com
Cannot read properties of undefined is an error that occurs when trying to access a property of an object that does not exist...
Read more >
Cannot read properties of undefined (reading 'title') 2 - Angular
I appreciate any help, I am stuck here for two weeks… ... As usual going to need to see the code for the...
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