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

94
Views
No se puede importar la exportación denominada 'XXX' (importada como 'XXX') desde el módulo de exportación predeterminado (solo está disponible la exportación predeterminada)

Tengo un problema al importar esto en mi proyecto TypeScript React.

 import { SwapWidget } from '@uniswap/widgets';

Obteniendo este error en la construcción de yarn build :

 Can't import the named export 'SwapWidget' (imported as 'SwapWidget') from default-exporting module (only default export is available)

Esta es la declaración en la biblioteca @uniswap\widgets :

 declare type SwapWidgetProps = SwapProps & WidgetProps; declare function SwapWidget(props: SwapWidgetProps): JSX.Element; export { SUPPORTED_LOCALES, SwapWidget };

ts-config.js :

 { "compilerOptions": { "target": "es5", "lib": [ "dom", "dom.iterable", "esnext" ], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, "jsx": "react-jsx" }, "include": [ "src" ] }
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!