Skip to content

Error: Error parsing triggers: Cannot find module #59

@vitaly87

Description

@vitaly87

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions