Jump to content

Requiring NodeJS core modules on the client-side


Recommended Posts


I am trying to require the 'vm' NodeJS core module on the client-side (https://nodejs.org/api/vm.html). It is working perfectly on the server-side and our server would need it for a quite important script manager. As I recognised, client-side require tries requires only from local files (./vm.js) and the 'vm' variable isn't defined until loading it.

We are already using it on the server-side in a script that manages all the server and makes all the development easier and the server more stable.

I hope someone can help me regarding this issue. Thank you!

Edited by seelrd
  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...