Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

387
Views
Firebase Uncaught TypeError: Failed to resolve module specifier "firebase/app". Relative references must start with either "/", "./", or "../"
<script type="module">
  import { initializeApp } from 'firebase/app';
  import { getDatabase } from 'firebase/database';

  // TODO: Replace the following with your app's Firebase project configuration
  const firebaseConfig = {
    config
  };

  const app = initializeApp(firebaseConfig);

  const database = getDatabase(app)
</script>

The Uncaught TypeError occurs in line 2. What is the problem?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Usually, this happens because firebase's newest version tools for developers for tools like database, auth , etc, are buggy. Install an older version of firebase. That will surely do the trick. (I am guessing you are using NPM or Yarn to install them, so do something like npm i firebase@5.10.0)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!