Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error TS6231: Could not resolve the path '' with the extensions: '.ts', '.tsx', '.d.ts'

I'm working on firebase functions with typescript and this error appears in the console while running tsc . -watch:

[12:19:41 PM] Starting compilation in watch mode...

error TS6231: Could not resolve the path '' with the extensions: '.ts', '.tsx', '.d.ts'.
  The file is in the program because:
    Root file specified for compilation

[12:19:45 PM] Found 1 error. Watching for file changes.

I have no idea where this might be arising from. I haven't changed anything since the last time this was working.

Any solutions?

like image 855
Vivek Avatar asked Sep 05 '25 03:09

Vivek


1 Answers

I got this error when I used tsc init instead of tsc --init

like image 102
2 revs, 2 users 67%William Avatar answered Sep 07 '25 20:09

2 revs, 2 users 67%William