Safari 5.1 Type Error Undefined Function Line 2
Problem
My socket.io application works on the latest versions of Chrome and Firefox. On Safari 5.1, though, during application load I get this error: TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g)'), from line 2 of socket.io.min.js for socket.io-client. The version is 1.0.17 for socket.io and socket.io.client Note: I posted this earlier, and accidentally closed the issue. So I'm reposting it.
Error Output
error: TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g)'), from line 2 of socket.io.min.js for socket.io-client.Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Safari 5.1 Type Error Undefined Function Line 2
Apparently npm -version doesn't work as one might expect. The version of socket.io-client is: 0.7.5. The error is: Line 2, TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g,!0)')
Trust Score
1 verification
- 1
Apparently npm -version doesn't work as one might expect. The version of socket.
Apparently npm -version doesn't work as one might expect. The version of socket.io-client is: 0.7.5.
- 2
The error is: Line 2, TypeError: 'undefined' is not a function (evaluating 'j.op
The error is: Line 2, TypeError: 'undefined' is not a function (evaluating 'j.open("GET",g,!0)')
Validation
Resolved in socketio/socket.io GitHub issue #437. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep