-
Notifications
You must be signed in to change notification settings - Fork 4
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
trying to use mocha-vm in another project #8
Comments
I've added:
which gives me this:
but I still can't work out what's going wrong:
The vm.js file in mocha-vm only has 35 lines ... |
interesting, I appear to now have things working by adding the following clause to
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having all sorts of trouble trying to use mocha-vm as part of another project. I've linked mocha-vm into my project like so:
and I can see it linked up in
node-modules/.package-lock
And I can see mocha-vm in the
node_modules/
directory of my project. If I cd into thenode_modules/mocha-vm/
directory within my project (which is of course just where I've git cloned mocha-vm on my local system) I can run it fine from the node console like so:however if I try from the node console at the root of my project I get this error:
I've been looking at the code specified in the stack trace, e.g.
node_modules/vm2/lib/contextify.js:228
which is:but don't really know where to go from there ...
The text was updated successfully, but these errors were encountered: