Unable to deploy dynamicContentMacros add-on on firebase

I’m trying to deploy dynamicContentMacros on firebase.
It get the following error and cannot deploy.

I thought there was a problem with the description of baseUrl in atlassian-connect.json.
So I wrote one of the following and deploy it, but it was an error.

  • https://{FIREBASE PROJECT NAME}.web.app
  • https://{FIREBASE PROJECT NAME}.firebaseapp.com.app

Please tell me how to deploy.

>firebase deploy --only functions


!  functions[app(us-central1)]: Deployment error.
Function failed on loading user code. Error message: Code in file index.js can't be loaded.
Is there a syntax error in your code?
Detailed stack trace: TypeError: Cannot read property 'replace' of null
    at new Sequelize (/srv/node_modules/sequelize/lib/sequelize.js:187:43)
    at new SequelizeAdapter (/srv/node_modules/atlassian-connect-express/lib/store/sequelize.js:59:33)
    at module.exports (/srv/node_modules/atlassian-connect-express/lib/store/sequelize.js:171:10)
    at Function.stores.create (/srv/node_modules/atlassian-connect-express/lib/store/index.js:20:10)
    at stores (/srv/node_modules/atlassian-connect-express/lib/store/index.js:12:17)
    at new Addon (/srv/node_modules/atlassian-connect-express/lib/index.js:35:38)
    at module.exports (/srv/node_modules/atlassian-connect-express/lib/index.js:231:10)
    at Object.<anonymous> (/srv/index.js:55:15)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at getUserFunction (/worker/worker.js:442:24)

Functions deploy had errors with the following functions:


By the way, the following steps will succeed.
“>npm start” or “>firebase serve”

The app server will start on “http://localhost:3000” and atlassian-connect.json was installed in the my cloud development confluence site.
And the dynamicContentMacros add-on works fine.