Hey!
I'm just trying elysia because it looks promising, but the node template is outdated and does not work out of the box:
(node:227925) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/gautier/escape/public-api-pocs/packages/elysia/main.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
at defaultLoad (node:internal/modules/esm/load:133:22)
at async nextLoad (node:internal/modules/esm/hooks:746:22)
at async nextLoad (node:internal/modules/esm/hooks:746:22)
at async Hooks.load (node:internal/modules/esm/hooks:383:20)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:199:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
This error is caused by ts-node, not elysia, so I advise replacing it with tsx
I'll open a PR with all these changes
Hey!
I'm just trying elysia because it looks promising, but the node template is outdated and does not work out of the box:
This error is caused by ts-node, not elysia, so I advise replacing it with tsx
I'll open a PR with all these changes