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

292
Views
¿Por qué el identificador 'currentExports' ya se ha declarado cuando uso craco?

cuando uso el craco, y escribo este código en el craco.config.js

 module.exports = () => { return { plugins: [{ plugin: FastRefreshCracoPlugin }], }; };

Y escribo esto en mi app.js.

 import { hot } from 'react-hot-loader' ... export default hot(module)(App)

Y estos en mi index.js

 import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render(<App/>, document.getElementById('root'))

El navegador muestra estos. No se pudo compilar. El análisis del módulo falló: el identificador 'currentExports' ya se ha declarado (95: 6) src/index.js 95: 6 El archivo se procesó con estos cargadores:

  • ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
  • ./node_modules/craco-fast-refresh/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
  • ./node_modules/babel-loader/lib/index.js Es posible que necesite un cargador adicional para manejar el resultado de estos cargadores. | } |

const currentExports = react_refresh_utils .getModuleExports(module.id); | react_refresh_utils .registerExportsForReactRefresh(exportacionesactuales, módulo.id); |

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!