Closed btea closed 4 months ago
On Windows, the value obtained by new URL(import.meta.url).pathname is prefixed with /, which will cause an error in __dirname.
new URL(import.meta.url).pathname
/
__dirname
On Windows, the value obtained by
new URL(import.meta.url).pathname
is prefixed with/
, which will cause an error in__dirname
.