-
Notifications
You must be signed in to change notification settings - Fork 60
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
Module "vm" missing. #6
Comments
vm-browserify uses |
Okay, thank you for the explanation. A mock would propably enough for my usage, but i got it working with adding vm-browserify (i think it is not using the the function at all but just checks if the library is there?) with configuring the
|
Am having the same issue. @parshap what would be an acceptable solution? a mock or actually using vm-browserify ? if so will create a pull request to cover the VM case |
I think a mock is the best solution unless you actually need sandboxing for security. Adding a |
note above, you might want to use the 'use strict';
const nodelibs = require('node-libs-react-native');
nodelibs.vm = require.resolve('vm-browserify');
module.exports = {
resolver: {
extraNodeModules: nodelibs
},
}; I'm not sure how @Y0nnyy's original snippet would work without that.. |
Can't find variable |
Yep, and in addition to using |
Nice work with this repo!
My app apparently requires "vm", but the "vm-browserify" alias was removed (in c0fb559).
Can you explain why? Is there a specific reason?
The text was updated successfully, but these errors were encountered: