chung-leong / zigar

Enable the use of Zig code in JavaScript project
https://chung-leong.github.io/zigar/
MIT License
177 stars 2 forks source link

require() doesn't work in interactive mode #426

Closed chung-leong closed 1 month ago

chung-leong commented 1 month ago
Uncaught:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
    at validateString (node:internal/validators:162:11)
    at pathToFileURL (node:url:1024:3)
    at Object.apply (/home/cleong/zigar/node-zigar/demos/node/snprintf/node_modules/node-zigar/dist/index.cjs:14:34)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18) {
  code: 'ERR_INVALID_ARG_TYPE'
}