Skip to content
Advertisement

Uncaught TypeError while importing from firebase/database

error that i’m getting:

Uncaught TypeError: Failed to resolve module specifier “firebase/database”. Relative references must start with either “/”, “./”, or “../”.

i am trying to setup firebase configuration for the latest version of firebase 9.1

JavaScript

PS. i have hidden the config on purpose, so thats not the problem.

Advertisement

Answer

It seems you are using Firebase SDK over CDN so try importing database in same way:

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