Skip to content
Advertisement

TypeError: undefined is not an object(evaluating ‘_$$_REQUIRE(_dependencyMap[9], “../../config/FIREBASE”).FIREBASE.database’)

I have installed Firebase with npm in Firebase, but I don’t know what happens with this error.

File FIREBASE.js

JavaScript

TambahKontak.js

JavaScript

Advertisement

Answer

You aren’t using the new Modular/Functional syntax which is included from version 9.0.0+. You would have to rewrite your code to follow the new syntax:

JavaScript

If you want to use the existing code (with older syntax) then use compat version by changing the imports to:

JavaScript

I’d recommend using the new version and following the documentation for learning more about it.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement