Related to https://github.com/zeit/next.js/issues/2126
When trying to export any project using firebase, as soon as firebase.database() is called, the export gets stuck and won't finish. As mentioned in issue 2126 if I kill the process, the page works fine, so it seems to complete the main process.
I have tried this both in my own project, as well as the learnnextjs-demo, branch firebase-hn.
I've also tried to force break out of the Promise (where I think is the problem, but can't know for sure) with both Promise.reject/resolve and throwing errors.
Steps to reproduce the behavior, please provide code snippets or a repository:
dev next build && next exportTo complete the export process.

The the demo project, I added
exportPathMap: function (defaultPathMap) {
return {
'/': { page: '/' }
}
}
...and to my project I'm using nextjs-export-path-map:
exportPathMap: function (defaultPathMap) {
return defaultPathMap
}
I've experimented with loading all of firebase as well as specific ones:
const firebase: any = await import('firebase')
const firebase: any = await import('firebase/app')
require('firebase/database')
I guess this is the same as #4747 fixed by #4749
@timneutkens I updated both projects to latest release of next (6.1.1-canary.1) and got the same result. Am I suppose to make any other changes?
It's not released yet, I merged it when I saw your issue. Will do a new release soon.
@timneutkens With version 6.1.1-canary.2 the export finish and I get a Export successful message 馃憤
Great, will close this then 馃檶
Most helpful comment
It's not released yet, I merged it when I saw your issue. Will do a new release soon.