Skip to content
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

XMLHttpRequest not found #30

Open
davepowell opened this issue Mar 2, 2016 · 0 comments
Open

XMLHttpRequest not found #30

davepowell opened this issue Mar 2, 2016 · 0 comments

Comments

@davepowell
Copy link

I am running a node test that is loading some fixtures. I have version 1.5.3 of js-fixtures. Version 3.6.0 of node.

I have a problem running npm test, the code gets to loadFixtureIntoCache on line 108 and then, 2 lines later instantiates a new instance of XMLHttpRequest - var request = new XMLHttpRequest();
This line fails with:
ReferenceError: XMLHttpRequest is not defined
at loadFixtureIntoCache (node_modules/js-fixtures/fixtures.js:110:25)

I have looked and searched everything I can think of. I use PHPStorm as my IDE and it can locate XMLHttpRequest just fine if I try to link from that reference on line 110.
I do suspect a setting somewhere. Help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant