-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'exp' of undefined #185
Comments
same here. probably after upgrading angular / ui tree it may be changes in this pull |
when I disable Batarang, this problem went away. |
Same problem here with the 2.1.5 @monad98 tried whithout batarand, still error. |
I have the same error |
Have the same error only in chrome, when attributes are not defined. |
Same problem here. Running Angular 1.2.23. It is complaining about 'maxDepth' (angular-ui-tree.js:646:17) and 'dragEnabled' (angular-ui-tree.js:769:17), both of which are the first attr.$watch() statements in their respective functions. Neither attributes is defined explicitly in my HTML. |
Could you set up a plunkr or jsFiddle that reproduce this problem so I can take a look at it. Thank you! |
I'll see if I can generate a minimal set that exhibits the problem. Note that I have wrapped angular-ui-tree in my own directive. |
It was definitely Batarang for me. I disabled it and it went away |
Same error when drag-enabled=true |
+1, I was running into the same exact issue, in Chrome with the Batarang plugin enabled, where I would get console errors and no drag and drop functionality. Disabling Batarang fixed the console errors for me, but this isn't really a good long-term fix since I'd like to continue using Batarang for future debugging! Is there any progress on a good solution to this? Cheers! |
+1, Error only showed in Google Chrome and disappeared when Batarang disabled. |
+1 Batarang |
This is still happening to me with Batarang disabled. Any one have other updates? |
I debugged the non-compressed version of this and was able to work around the issues by conditionally adding the watch only if the attribute was present in the case of attrs.maxDepth and attrs.dragDelay. And also adding data-collapsed="false" to both <li> elements that had ng-repeats. We are not using drag-and-drop so I don't know if doing what I did has any adverse side effects. I can say that at least initially, there are none in our app. Doing the above got rid of the errors for us. |
+1, this is so annoying |
+1 |
+1 for conflict with batarang |
+1 for problem due to batarang |
+1 |
same error here with batarang enabled. angular-ui-tree ver 2.1.5 |
The problem is that the angular-ui-tree code is doing a typeOf == 'number', so if you pass 0 in as an html attribute it sees it as a string. I found if I specified the attribute and passed it a variable I set in the scope, IE $scope.maxDepth = 0; it works and removes the 'exp' undefined error when you're using batarang. Perhaps the code receiving this attribute should cast it to a number, or the check should be made more tolerant? For reference, the code in question is this: which appears on line 506 when I auto-layout the minified code. |
@MagicIndustries are you up to create a PR for this? |
Just happened to me too, disabling batarnag did the job |
AngularJS v1.4.4 Disabling Batarang helped. |
Made a pull request #664 to fix this issue in the latest version |
Hi all, I'm still getting this issue without batarang. I have the map included on a single page:
and the following code to init:
The error is as follows:
Versions:
Any help would be appreciated. |
@Vixxd Try upgrading to 2.3.3. Moving from 2.0.11 to 2.3.3 fixed a |
@nordoff how did you upgrade it? |
I am using bower, so I simply changed the version in dependency list in my bower.js |
@nordoff I did it too but IMHO it doesn't work as the most recent version is 2.15.0 O_o Could you please give me the exact bower.json line? |
@archasek Hope that helps |
+1. Same issue using uib-typeahead. Disabling batarang works, but that's not ideal |
thanks! had the same error but with angular inspector, which is based on batarang |
Hi,
I've come across the following issue in the image below. There must be something that i'm missing but I can't put my finger on it.
I have the following scripts included:
jquery-2.1.1.js
angular.js (v1.2.20)
bootstrap.js (v3.1.1)
angular-ui-tree.js
The controller and html code is pretty much the same as in the connected trees demo.
Thank you.
The text was updated successfully, but these errors were encountered: