You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another example is the NPM moduleaws-sdk. It has a circular require between service.js and core.js. require("sandboxed-module").require("aws-sdk") will fail.
The text was updated successfully, but these errors were encountered:
wicharek
added a commit
to wicharek/node-sandboxed-module
that referenced
this issue
Feb 28, 2016
Node.js supports circular requires
The behavior can be odd or unexpected, but it is supported.
In some cases though, this library is loading these circular requires differently, causing them to fail.
I posted an example of such a situation here: https://github.com/thoughtless/circular_require_demo
Another example is the NPM module
aws-sdk
. It has a circular require between service.js and core.js.require("sandboxed-module").require("aws-sdk")
will fail.The text was updated successfully, but these errors were encountered: