class imported but still firebase deploy fails with Cannot find module
问题 I have simple google cloud function declared in functions/src/index.ts import * as functions from 'firebase-functions'; import { Hero } from './hero'; var util = require('util') export const repeat = functions.https.onCall( function (data, context){ console.log(' repeat ' + util.inspect(data) + util.inspect(context)); let aHero = new Hero('Google cloud', 50); return aHero; } ); and Hero is declared in another file name hero.ts as follows in same folder as index.ts, that is functions/src/