Error parsing triggers: Cannot find module

Viewed 1468

I am trying to deploy my firebase function to cloud but getting an error:

Error: Error parsing triggers: Cannot find module 'EmailData'

1.I compile my ts file to js.

2.the build of ts ok... my code looks like:

the ts that importing the file...

var EmailDataClass = require("EmailData");

and the file it self:

class EmailData {....
}export = EmailData;
āœ”  functions: all necessary APIs are enabled
i  functions: preparing functions directory for uploading...

Error: Error parsing triggers: Cannot find module 'EmailData'
1 Answers
Related