Yan
Yan
NNuxt
Created by Yan on 12/13/2024 in #❓・help
Nuxt with PM2 and TypeScript
I have a project with a Nuxt application and PM2. For the PM2 application we have a file named worker.cjs. I turned this into a TypeScript file, so that I can leverage the types we have from our Supabase database. I am trying to have it compiled when Nuxt builds, so I've added an extra tsconfig as composite. Does somebody have experience with this?
TS6305: Output file '/dist/workers/worker.d.ts' has not been built from source file '/workers/worker.ts'.
The file is in the program because:
Matched by include pattern '.nuxt/../**/*' in '/tsconfig.json'
TS6305: Output file '/dist/workers/worker.d.ts' has not been built from source file '/workers/worker.ts'.
The file is in the program because:
Matched by include pattern '.nuxt/../**/*' in '/tsconfig.json'
5 replies