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

646
Views
Error with firebase starting project on vue2

When I run npm run dev, get next error I write on Vue 2 webpack-simple, firebase 9.9.0 Tried npm firebase@^9.9.0 but no result main.js

import Vue from 'vue'
import App from './App.vue'
import vuetify from "./plugins/vuetify";
import {Vuelidate} from "vuelidate";
import {firestorePlugin} from "vuefire";
import firebase from "firebase/app";

Vue.use(Vuelidate)
Vue.use(firestorePlugin)

import {store} from "../store";
import {router} from "./plugins/routes"


const firebaseConfig = {
  apiKey: "***",
  authDomain: "***",
  projectId: "***",
  storageBucket: "***",
  messagingSenderId: "***",
  appId: "***",
  measurementId: "***"
};

export const db = firebase.initializeApp(firebaseConfig).firestore()

const {Timestamp, GeoPoint} = firebase.firestore()
export {Timestamp, GeoPoint}

db.settings({timestampsInSnapshots: true})

new Vue({
  el: '#app',
  vuetify,
  router,
  store,
  render: h => h(App)
})

Error

./node_modules/idb/build/index.js
    Module parse failed: Unexpected token (83:4)
    You may need an appropriate loader to handle this file type.
    | }
    | replaceTraps((oldTraps) => ({
    |     ...oldTraps,
    |     get: (target, prop, receiver) => getMethod(target, prop) || oldTraps.get(target, prop, receiver),
    |     has: (target, prop) => !!getMethod(target, prop) || oldTraps.has(target, prop),
     @ ./node_modules/@firebase/app/dist/esm/index.esm2017.js 5:0-29
     @ ./node_modules/firebase/app/dist/index.esm.js
     @ ./src/main.js
     @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

I just needed to update vue-cli

about 4 years ago · Santiago Gelvez 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!