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. #1

Open
jperkelens opened this issue Jan 8, 2015 · 3 comments
Open

XMLHttpRequest not found. #1

jperkelens opened this issue Jan 8, 2015 · 3 comments

Comments

@jperkelens
Copy link

Running mocha 2.1.0 on node 0.10.30 with the following command:

@NODE_PATH=./lib:./test/client mocha -u bdd -R dot -c --compilers js:mocha-traceur --recursive test/client

is returning

/usr/local/lib/node_modules/mocha-traceur/node_modules/traceur-runner/node_modules/traceur-source-maps/node_modules/source-map-support/source-map-support.js:60 var xhr = new XMLHttpRequest(); ^ ReferenceError: XMLHttpRequest is not defined make: *** [client] Error 7

@domenic
Copy link
Owner

domenic commented Jan 8, 2015

You should never use NODE_PATH, it will cause problems.

@jperkelens
Copy link
Author

Can you elaborate? I haven't read anything that warns against using NODE_PATH, and some very important node contributors have advocated for its use.

@domenic
Copy link
Owner

domenic commented Jan 8, 2015

tj is not a contributor to Node. It is an undocumented API that mucks with the fundamentals of how files are required.

If you can produce a repro without using this problematic feature we can re-focus the conversation on mocha-traceur, i.e. the repo for which this is the issue tracker.

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

2 participants