angular 1.2 "Attempted to assign to readonly property"

3,750 views
Skip to first unread message

Nate Brustein

unread,
Nov 15, 2013, 9:14:41 AM11/15/13
to ang...@googlegroups.com
Ever since updating to angular 1.2, I keep running into tests that fail with "TypeError: Attempted to assign to readonly property." and no useful stack trace.  I've tracked these down to different issues in different cases.  Some examples:
  • cases where I'm accessing a variable that I hadn't declared with "var," 
  • cases where I had failed to include a template in my test (which in the old angular used to give a really useful error saying exactly which template you had failed to include)
I'm wasting a lot of time every day trying to track down these errors.  Without a stack trace or a useful message it's really hard to figure out what's going on.

Are other people having this issue?  Is there some way around it?

Thanks,

Nate

Nate Brustein

unread,
Nov 15, 2013, 9:40:53 AM11/15/13
to ang...@googlegroups.com
Update: It seems like the issue is maybe only in PhantomJS.  I started using Chrome for my tests, and I'm getting real stack traces again.

Nate Brustein

unread,
Nov 19, 2013, 5:40:00 PM11/19/13
to ang...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages