-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error when running JSDOM.fromURL on a website using jQuery #2952
Comments
I can't reproduce this because you have not provided a real URL, or an example of the output. |
@domenic Sorry for that, I've updated the issue. |
I get the same issue when running code like this
|
Can confirm behavior. I am running on sites anger many different errors no matter what way I try. |
Having the same issue. |
Have the same issue:
It returns undefined and this error is shown:
|
I have the same issue. I'm so surprised that this issue has not been answered for so long. Error message is same with yours, starts with And also the error message repeats twice. My code is: axios.get('https://covid19.saglik.gov.tr/').then(response => {
const html = response.data;
const window = new JSDOM(html, {
runScripts: 'dangerously',
}).window;
}); |
How is this still not answered? |
Also getting this error. Appears to have been one since 2012. No fix in sight? |
Basic info:
Minimal reproduction case
Explanations
When I run this code on a website using Jquery, the wantedValue variable is fine, I get the value I want.
But my Node.js console is full of
Error: Uncaught [ReferenceError: $ is not defined]
.The catch doesn't seem to work here. Is it possible to catch errors from external scripts like this ? Or to pass jQuery as dependence to jsdom ?
Errors:
(I get multiple times this same error).
The text was updated successfully, but these errors were encountered: