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

169
Views
No se pudo encontrar un archivo de declaración para el módulo 'buffer-layout': @solana/spl-token

Estoy tratando de trabajar con @solana/spl-token lib para transferir tokens, pero cuando intenté instalar y ejecutar ng serve (usando Angular 11). Recibo el siguiente error:

 Could not find a declaration file for module 'buffer-layout'. './node_modules/buffer-layout/lib/Layout.js' implicitly has an 'any' type. Try `npm install @types/buffer-layout` if it exists or add a new declaration (.d.ts) file containing `declare module 'buffer-layout';` import {Layout} from 'buffer-layout';

He tratado de incluir

 declare module 'buffer-layout';

en el archivo src/index.d.ts pero no funcionó.

yo también recibo

 Namespace '"./node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'. 7 static ɵfac: i0.ɵɵFactoryDeclaration<ToastContainerDirective, never>;
 Cannot use namespace 'Layout' as a type. export const MintLayout: Layout;

Sería genial si alguien puede ayudar aquí.

¡Gracias por adelantado!

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!