I've encountered an issue with my Firebase project that's written in JavaScript (not TypeScript). When attempting to run the functions emulator, I'm getting the following error:
$ firebase emulators:start --only functions
⚠ functions: Cannot find module './tsconfig.json'
⚠ Your function was killed because it raised an unhandled error.
Why is my JavaScript application suddenly requiring a TypeScript configuration? What should be included in this file?
This problem started occurring after updating firebase-tools
from v7.11.0 to v8.4.2.
I attempted to reinitialize the project using firebase init
, hoping that the updated tools would address any missing configurations when opting for JavaScript instead of TypeScript, but unfortunately, it didn't fix the issue.