'firebase cloud error Failed to load function definition from source
unable to deploy changes to firebase cloud
Action: "Firebase Deploy" in cmd
results:
i deploying functions
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
functions: required API cloudfunctions.googleapis.com is enabled
functions: required API cloudbuild.googleapis.com is enabled
i functions: preparing codebase default for deployment
Error: Failed to load function definition from source: Failed to generate manifest from function source: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\rushikesh.chaskar\IdeaProjects\todosmanager\node_modules\firebase\package.json
Solution 1:[1]
I soved it by upgrading the firebase-functions dependency
yarn add firebase-functions
In the functions directory
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Roberto |