firebase-functions-helper icon indicating copy to clipboard operation
firebase-functions-helper copied to clipboard

Can't find declaration file

Open brandtdaniels opened this issue 5 years ago • 2 comments

Receiving this error

src/index.ts:4:33 - error TS7016: Could not find a declaration file for module 'firebase-functions-helper'. '/Users/asdf/Developer/git/Personal/my-api/functions/node_modules/firebase-functions-helper/dist/index.js' implicitly has an 'any' type. Try npm install @types/firebase-functions-helper if it exists or add a new declaration (.d.ts) file containing declare module 'firebase-functions-helper';

brandtdaniels avatar Dec 03 '19 18:12 brandtdaniels

Doing this const firebaseHelper = require('firebase-functions-helper'); instead of this import * as firebaseHelper from "firebase-functions-helper";

fixed this import issue for me, not sure why...

JoshuaFry avatar Jan 01 '20 15:01 JoshuaFry

@brandtdaniels @JoshuaFry I just updated the package to v0.7.5. Please try it again. Thanks,

dalenguyen avatar Jan 02 '20 15:01 dalenguyen