"firebase": "9.6.1",
"@vue/cli-plugin-babel": "4.4.4"
module.exports = {
presets: [['@vue/app', { useBuiltIns: 'entry' }]]
}
Thanks
I read Firebase docs in here: https://firebase.google.com/docs/web/environments-js-sdk#suggested-polyfills. I resolved this problem as follow:
module.exports = { presets: [['@vue/app', { useBuiltIns: 'entry' }]] }
import 'core-js/stable' import 'cross-fetch/polyfill' import 'indexeddb-getall-shim'
"cross-fetch": "^3.1.5" "core-js": "3.6.5", "indexeddb-getall-shim": "^1.3.6"
transpileDependencies: [
// can be string or regex
'@firebase',
/graphql/ ]
But i still don't understand the problem.