fibjs/fibjs

Fibjs shell "Error: [2] 系统找不到指定的文件" but nodejs shell works

forchid opened this issue · 0 comments

In current directory, there is a file 'ok.js'.

module.exports = () => console.log("OK");

Test case

C:\Users\Administrator\lang\js>fibjs
Welcome to fibjs 0.35.0.
Type ".help" for more information.
> let ok = require('./ok');
repl:1:10
let ok = require('./ok');
         ^
Error: [2] 系统找不到指定的文件。
    at repl:1:10
> .exit

C:\Users\Administrator\lang\js>node
Welcome to Node.js v16.13.0.
Type ".help" for more information.
> let ok = require('./ok');
undefined
> ok()
OK
undefined
>