Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

262
Vistas
Firebase Function deploy throwing typescript errors

I am using typescript with Firebase Functions. When I try to deploy using npm run deploy inside functions directory. It throws too many typescript errors.

../../../../node_modules/@types/react/index.d.ts:3208:13 - error TS2717: Subsequent property declarations must have the same type.  Property 'feFuncB' must be of type 'SVGProps<SVGFEFuncBElement>', but here has type 'SVGProps<SVGFEFuncBElement>'.

3208             feFuncB: React.SVGProps<SVGFEFuncBElement>;
                 ~~~~~~~

  ../node_modules/@types/react/index.d.ts:3108:13
    3108             feFuncB: React.SVGProps<SVGFEFuncBElement>;
                     ~~~~~~~
    'feFuncB' was also declared here.

../../../../node_modules/@types/react/index.d.ts:3209:13 - error TS2717: Subsequent property declarations must have the same type.  Property 'feFuncG' must be of type 'SVGProps<SVGFEFuncGElement>', but here has type 'SVGProps<SVGFEFuncGElement>'.

3209             feFuncG: React.SVGProps<SVGFEFuncGElement>;
                 ~~~~~~~

  ../node_modules/@types/react/index.d.ts:3109:13
    3109             feFuncG: React.SVGProps<SVGFEFuncGElement>;
                     ~~~~~~~
    'feFuncG' was also declared here.

../../../../node_modules/@types/react/index.d.ts:3210:13 - error TS2717: Subsequent property declarations must have the same type.  Property 'feFuncR' must be of type 'SVGProps<SVGFEFuncRElement>', but here has type 'SVGProps<SVGFEFuncRElement>'.

3210             feFuncR: React.SVGProps<SVGFEFuncRElement>;
                 ~~~~~~~

 
../../../../node_modules/@types/react/index.d.ts:3222:13 - error TS2717: Subsequent property declarations must have the same type.  Property 'filter' must be of type 'SVGProps<SVGFilterElement>', but here has type 'SVGProps<SVGFilterElement>'.

3222             filter: React.SVGProps<SVGFilterElement>;

tsconfig.json

  "compilerOptions": {
    "module": "commonjs",
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "outDir": "lib",
    "sourceMap": true,
    "strict": true,
    "target": "es2017"
  },
  "compileOnSave": true,
  "include": [
    "src"
  ]
}

Seems like typescript is going through the node modules folder.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

{ 
  {
    "compilerOptions": {
      "module": "commonjs",
      "noImplicitReturns": true,
      "noUnusedLocals": true,
      "outDir": "lib", 
      "sourceMap": true,
      "strict": true,
      "target": "es2017",
      "typeRoots": ["node_modules/@types"]  // <-- here
    },  
    "compileOnSave": true,
    "include": ["src"]
  }
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda