-
Notifications
You must be signed in to change notification settings - Fork 752
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: undefined is not a function in github.js:32 #49
Comments
Line 32 is
The new code regards node.js:
If i comment this out, the error is gone. Strangely i get this:
However there is nothing wrong with my XHR, it works fine in other apps! |
Just did a quick fix. Please check if it works now. |
nope, does not work. furthermore: is this bound to the global object here? if yes, it does not change anything. if no, the code should not work with node.js anymore. |
So this code: if (typeof this.exports !== 'undefined') {
var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
var _ = require('underscore');
} should only be executed for the Node.js environment. |
as it shouldn't be executed for the browser, as window does not have exports. nevertheless it gets executed. i lack a good explanation too... |
Exactly. Strange, just included the file and it works fine. |
OK, some debug info: Firefox 20.0.1 64-bit Linux |
Hi all, This code work for me...
|
This issue is about node.js compatibility, not IE compatibility... |
Ok...But one more problem i am facing Guys.. In the above code i want pass the toke dynamically for every individual github login user..How can i do this.. Any appreciated answer ... |
Doesn't work on chrome 26.0.1410.65 either.
for what it's worth im doing the following:
and getting this error immediately. i fixed it by simply changing line 32 to |
I'm having the same issue. Chrome 26.0.1410.65 and Mountain Lion v10.8.3
results in the same error, Uncaught TypeError: undefined is not a function. |
@FajitaNachos change line 32 from
to
|
☝️ Was it fixed already? 'Cause it is working for me just fine. |
Use real errors instead of objects fixes github-tools#48
I am not able to reproduce this error either. Please open a new issue if this error comes up again. |
While call write/read methods it show error like: Uncaught TypeError: undefined is not a function in github.js:32
i try like this bellow...
repo.read('master', 'README.md', function(err, data) {});
repo.write('master', ' Test/README.md ', 'This is my New comment', '1st commit', function(err) {});
The text was updated successfully, but these errors were encountered: