Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Getting compile errors when running `npm test` using gpu package

Aperta
#249 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
react, typescript, vite

Direzione di ricerca

Start by reproducing npm test with layout-gpu in a minimal Vite and TypeScript React app, recording the installed package versions and the full module-resolution error. Trace where the test command resolves @antv/layout@alpha, then confirm that the dependency can be installed and tested without the reported error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

layout-gpu

When I install layout-gpu to use GPU accelerated algorithms, they run fine in my react app, but when I run a test command I get this error Error: Cannot find module '@antv/layout@alpha'.

Which is quite confusing? I can' t see a layout@alpha package anywhere. Also fine it works in react dev mode but not when the app runs npm i to test. Note I am using vite and typescript.

Lingua principale
TypeScript
Stelle
279
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di antvis/layout

Tutte le issue di antvis/layout

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.