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

150
Views
Error resolving module specifier “firebase/app”

I'm trying to use firebase to make contact form work.The project is working with webpack. Following all tutorials and documentation I put the code

import { initializeApp } from "firebase/app";


const firebaseConfig = {
    apiKey: "LKJidsdkjoeiflkdsjfsidfjlsdisj",
    authDomain: "sdfklsdkj.firebaseapp.com",
    projectId: "sdfklsdkj",
    storageBucket: "sdfklsdkj.appspot.com",
    messagingSenderId: "1068439125174",
    appId: "1:1132132332:web:4ecfb3a687c92917617a17"
  };

 
const app = initializeApp(firebaseConfig);nter code here

to special form.js file in the bottom of HTML:

    <script src="./src/assets/form.js"></script>
    <script src="./dist/main.js"></script>

And firefox console gives me this error: import declarations may only appear at top level of a module. I tried to solve the issue and add type="module" in the script. And got another error in console:
Error resolving module specifier “firebase/app”. Relative module specifiers must start with “./”, “../” or “/”. How to solve this issue?

about 4 years ago · Juan Pablo Isaza
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!