fastify-file-routes
fastify-file-routes copied to clipboard
TypeError: Unknown file extension ".ts" for /app/src/routes/index.ts
Hi,
I has recently started to receive this error: " Unknown file extension ".ts" for /app/src/routes/index.ts"
Appears in a place where fastify-file-routes package tries to import a file const module2 = await import(path5);
path5 = '/app/src/routes/index.ts'
Help please!
Start the app with command tsnd -r tsconfig-paths/register --poll --respawn --inspect=0.0.0.0:9229 src/server.ts
ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 4.5.2)

Hey , I haven't updated it yet to support fastify v4, will see if it can be fixed tomorrow. I mainly waited because I was aiming to add more typescript runtime check support.
Thank you for the answer. I have made my logic without this plugin temporarily. I'll be waiting for updates😉