admin 管理员组

文章数量: 1086019

When I run the command tsx watch src/bootstrap/server.ts I get this error:

 TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined

the error points to this line of code:

const jwtKey = fs.readFileSync(process.env.JWT_PUBLIC_KEY as string)

This has never thrown any errors before and everything I find online praises how easy tsx is so I must be doing something wrong.

Currently this repo uses nodemon and runs with no problem, its just slow to recompile.

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)