-
Notifications
You must be signed in to change notification settings - Fork 786
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
Uncaught TypeError: Cannot read property 'pageX' of undefined #251
Comments
Could you copy the full stack trace and paste it here? Which version of interact.js are you using? |
interact.js v1.2.4 The stack trace is from a compressed bundle, so not very readable:
But, from a quick review of the code it's clear that there are cases where the setEventXY method will be called with |
Same issue here. |
Can you use the master version and generate a sourcemap for the bundle then paste the stacktrace here or make a small demo that demonstrates the bug? |
I also have this issue in my app. Here is a plunker to reproduce it: http://embed.plnkr.co/isvvZTN92aTmPUZLDtND/preview Using Chromebook Version 45.0.2454.15 beta (64-bit)
I also tried on master and not able to reproduce this issue. Is the master version consider stable enough for production? Is any expect release date for next version? |
@xlc Thanks for the info! There have so far mostly been bug fixes since the previous release. The biggest change is probably
From commits 88dc583 and 16d74d4. If you don't use an |
The problem I discovered before did not exist anymore. However there is still a I am using 3550e57 I am not yet able to reproduce it. Line 3413 in 3550e57
Line 1913 in 3550e57
Line 1873 in 3550e57
Line 3289 in 3550e57
|
This should be fixed now. A new release is due tomorrow or the day after. Thanks for all the information! |
I am still experiencing both issues, the original one reported by @73rhodes and the other one reported by @xlc.
Stack trace for the second issue is the same as here #251 (comment). I am using the b3bfc3e version. |
@marian-r Can you try with the very latest commit from |
I am using it via Bower. Can I get the latest version from master via Bower, but the version which is built already? |
According to this, using this in your bower.json file should work:
|
Thanks, I didn't realized you include the bundled version in the |
The next version is planned to be I've implemented a fix for #295 and updated |
Oh, thanks a lot for all your work. I would like to try the version |
@taye: sorry for ask, do you have any release plan for 1.3.0 |
@nttrung143 Can you describe the new bugs that you're seeing and provide stack traces if exceptions are being raised? I really don't know when the next version will come. I have a lot of other work to do and can't work on writing tests to find bugs. What would probably make the release happen sooner would be for people to try the latest version and report any bugs that they find. If they don't find any bugs and are using interact.js for fairly complex interactions, it would also be helpful if they mention in the Gitter chatroom that things are working well for them and list which features they're using. |
We are also seeing errors with the Interact 1.2.6 via bower. "Uncaught TypeError: a.getClientRects is not a function" - interact.js:717 Also we tried updating our bower.json file to the following:: But we still get these errors. Any suggestions? Update: I've noticed that when I do NOT have a dropzone engaged I am able to drag. However, this isn't ideal since we do need a dropzone to actually drop. Below is my dropzone that seems to cause the errors with the actual dragging: interact = interact || window.exports.interact; Seems like it might have something to do with passing in an (element) into the dropzone? |
Can you open a new issue and provide information about the errors you're getting with the |
@taye this issue is still not fixed in the latest version from |
@marian-r sorry for the delay. Can you post a stack trace and a brief description of your application? |
Here is the stacktrace I am getting for this error:
|
For me it's the same: TypeError: Cannot read property 'pageX' of undefined |
@abrbhat @kairiruutel try with the unstable branch. |
The unstable branch doesn't work for me (using browserify) |
@taye, unfortunately, the error is present in the |
Are there any updates related to the "TypeError: Cannot read property 'pageX' of undefined"? |
I'm sorry for the not sorting this out after so long. I'll begin to investigate this issue again in the coming days. |
There's a new |
// I am still having the same problem at this line of code, it says getAttribute is not defined var x = (parseFloat(target.getAttribute('data-x')) || 0); |
It used to be clashing with dragging the handle in noUISlider. However with the |
Also unable to build this
|
@AlecRust The |
@taye I haven't tried the unstable branch, but I can easily reproduce this issue in Chrome 55.0.2883.75 on http://interactjs.io/ Steps to reproduce:
Alternative reproduction: The error appears simply by moving your mouse onto the webpage from the browser chrome area (tabs, address bar, bookmarks, etc). |
I just come across the same problem as @stevelove , and I have tried v1.3.0, the error is gone but the interact doesn't work itself , why? Are there any difference of two versions @taye |
I'm seeing the same issue as above (as noted by stevelove), with npm pkg Just updated to Chrome 55.0.2883.95 (64-bit, OSX) yesterday, so I guess that's what did it, as I run |
I get (above) error "Cannot read property 'pageX' of undefined" when moving my mouse in and out of the chrome browser window |
Getting the same error + makes chrome tab crash when using |
Yup same error when moving mouse out of the webpage content (out of chrome). Also when debug console is open and I move the mouse out of the content to the console, this error comes out. The pointer object is undefined as @naivefun also pointed out. Is there any fix? It's very annoying. Safari is working. It's most likely a chrome problem. This bug is discussed here #457. |
Same problem here, i think when upgrade chrome to v55 |
@taye please backport the fix to 1.2.x |
I've pushed a thing to the stable branch to avoid PointerEvents in Chrome. If you're using |
v1.2.8 fix the error for me |
Confirmed v1.2.8. fixes the error, thanks @taye! |
v1.2.8 has also resolved this issue for us. Thanks @taye! |
Could you please update the download on interact.io to version 1.2.8? Thanks! |
fixe for me also ! thk uuu ! |
in the meantime, you can use the 1.2.8 version from a CDN.
|
This error originates from the
pointerMove
event listener, initiating a call chain tosetEventXY
andgetPageXY
, where evidently thepointer
is has been passed in asundefined
.Seen on Google Chrome and Chrome Mobile, running on WIndows 8.1, Android 4.4, Windows (version undefined) and Linux.
getPageXY
should handle nullpointer
exceptions (no pun intended).The text was updated successfully, but these errors were encountered: