简体   繁体   中英

Why is my Firebase Functions emulator not running my changes in Typescript?

I am using the Firebase Functions emulator. But when I make a change to the code, it still runs the old version. I am using Typescript.

How can I get it to run the new version?

As stated in their documentation :

Note: Code changes you make during an active session are automatically reloaded by the emulator. If your code needs to be transpiled (TypeScript, React) make sure to do so before running the emulator.

You can do this by running npm run build in your functions folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM