Firebase serve with TypeScript build Automatically.

add the line [“watch”: true] into tsconfig.json

  1. execute [ > npm run build ]


You have to execute the command [npm run build] under the “/functions” directory. not the root directory. because the tsconfig.json and package.json file are under the folder.

available error

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/.../package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/.../package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/...-debug.log

Dropout from Physics, self-taught and worked on the IT industry as a Dev/Design/Planning for 8 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧