assistant icon indicating copy to clipboard operation
assistant copied to clipboard

TS-NODE error

Open Ryzitos opened this issue 6 months ago • 0 comments

I've had this error for over 6 months, I can't start it using "pnpm start" without it appearing. I've never been able to fix it or find a solution online, but from time to time I come to see if by some miracle I can use it without this error appearing. It's a weird TS NODE error that's apparently quite common in other projects, but I have no idea how to fix it and I wanted to know if you know, here is the error:

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/userland/assistant/src/index.ts      at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:203:36)                                               at defaultLoad (node:internal/modules/esm/load:143:22)
    at async nextLoad (node:internal/modules/esm/hooks:866:22)                                                      at async nextLoad (node:internal/modules/esm/hooks:866:22)                                                      at async Hooks.load (node:internal/modules/esm/hooks:449:20)                                                    at async MessagePort.handleMessage (node:internal/modules/esm/worker:196:18) {                                code: 'ERR_UNKNOWN_FILE_EXTENSION'                    }                                                        ELIFECYCLE  Command failed with exit code 1.

Screenshot_20240811_070404_UserLAnd

Ryzitos avatar Aug 11 '24 11:08 Ryzitos