TeamSekai / Sekai.CDN

Let's make CDN yourself!
MIT License
2 stars 3 forks source link

Polyfill import.meta.dirname #11

Closed takejohn closed 7 months ago

takejohn commented 7 months ago

これでNode v18でも動くかな?

ringo360 commented 7 months ago

uh no

~/cdn$ yarn start
yarn run v1.22.19
$ node cdn.js
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:405:5)
    at validateString (node:internal/validators:162:11)
    at Object.resolve (node:path:1097:7)
    at file:///home/hdd360/cdn/Routes/api/index.js:6:23
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v18.17.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.