fastify-file-routes icon indicating copy to clipboard operation
fastify-file-routes copied to clipboard

TypeError: Unknown file extension ".ts" for /app/src/routes/index.ts

Open dmitrydrynov opened this issue 3 years ago • 2 comments

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)

image

dmitrydrynov avatar Aug 10 '22 15:08 dmitrydrynov

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.

spa5k avatar Aug 10 '22 18:08 spa5k

Thank you for the answer. I have made my logic without this plugin temporarily. I'll be waiting for updates😉

dmitrydrynov avatar Aug 10 '22 21:08 dmitrydrynov