Struggling to deploy firebase functions and encountering multiple issues.
During the deployment process, facing a babel error:
Error: Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault'
at Function.Module._resolveFilename (module.js:476:15)
... (error stack trace continues)
Upon inspecting
@babel/runtime/helpers/builtin/interopRequireDefault
, found the file within the functions
folder.
Using material-ui
with reactjs currently, and the error arises specifically when incorporating material-ui
.
package.json within functions:
{
"name": "functions",
"description": "Cloud Functions for Firebase"
... (rest of package.json content)
package.json in the project root:
{
"name": "Cards",
"version": "1.0.0",
... (rest of package.json content)
After coding completion, executing npm run babel
to convert and place code into functions folder followed by firebase deploy
.
The main question remains - what is causing this deployment error?