node-eval icon indicating copy to clipboard operation
node-eval copied to clipboard

Evaluate node require() module content directly

Results 14 node-eval issues
Sort by recently updated
recently updated
newest added

`require-like` uses `Module._load`, an API that is not supported by Bun (atm): https://github.com/oven-sh/bun/issues/5925 This led to bugs in Docusaurus Bun support: https://github.com/oven-sh/bun/issues/3426#issuecomment-1929173528 This can be prevented by using this Node...

I'm getting this error: ``` ERROR in ./node_modules/require-like/lib/require-like.js Module not found: Error: Can't resolve 'module' in '/Users/samueljoseph/Documents/Github/neurogrid/paironauts/node_modules/require-like/lib' ``` in node v16.3.0 on OSX 11.4 ... I get the same on...

I have my node environment as 10.24.1 where I am facing this issue `evalmachine.:1` `Object.getOwnPropertyNames(globalThis)` `ReferenceError: globalThis is not defined` ` at evalmachine.:1:28` `at Script.runInContext (vm.js:133:20)` `at Script.runInNewContext (vm.js:139:17)` `at...

I noticed an error while using this package with Node.js v16.13.2 [^1]. Specifically, when not providing a `filename` myself, I'm seeing the error: ```log .../node_modules/eval/eval.js:38 var _filename = filename ||...

``` ❯ node --experimental-modules Welcome to Node.js v16.3.0. Type ".help" for more information. > const _eval = require('eval', '.', {}, true) undefined > _eval("var expect = require('chai').expect", true) Uncaught: TypeError...

I tried to use an import statement instead of the require: `import * as _eval from 'eval';` But when using the module I get the error message `_eval is not...

### nodejs version 6.9.1 ### npm version 3.10.8 ### issue description when I use the module `eval`, the nodejs report the error: ``` ERROR in ./~/require-like/lib/require-like.js Module not found: Error:...

Module not found: Error: Cannot resolve module 'fs' in /Users/jenyckee/srv/react-redux-midi-rtc/node_modules/graceful-fs

I have the following `react` code running in node.js: ``` js let fn = _eval( ` var React = require("react"); module.exports = function(props,el) { return React.createElement("div",{},"hello"); } ` , "eval",...

This doesn't work, ``` const foo = require_eval(body, walkTemplatePath, true).bar ``` … but this does: ``` const foo = require_eval(body, walkTemplatePath, {}, true).bar ```