Skip to content
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

Error in using require #112

Open
RixInGithub opened this issue Mar 2, 2024 · 0 comments
Open

Error in using require #112

RixInGithub opened this issue Mar 2, 2024 · 0 comments

Comments

@RixInGithub
Copy link

I run this code in the interpreter:

let fs = require {"fs"} in console.log {fs}

But it errors this:

Uncaught LambdaRuntimeError {
  _error: Error: runtime error: argument of 'require' must be a string
      at LambdaRuntimeError.LambdaError (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:51:17)
      at new LambdaRuntimeError (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:91:17)
      at C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:3272:13
      at SemiNativeNode.evaluate (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:1902:30)
      at Closure.bind (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:620:27)
      at ApplicationNode.evaluate (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:1500:17)
      at LetNode.extend (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:1554:49)
      at LetNode.evaluate (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\lambda.js:1556:5)
      at C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\Main.js:33:23
      at REPLServer.eval (C:\Users\user\AppData\Roaming\npm\node_modules\lambda\bin\Main.js:44:18),
  message: "runtime error: argument of 'require' must be a string"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant