build: tsdown vendor alias uses URL.pathname, which breaks pnpm build on Windows
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
- Área
- build-system
Línea de trabajo
El fallo está en la expresión .pathname de tsdown.config.ts, donde el alias de vendor para '@limrun/xdelta3-wasm' se construye a partir de new URL(..., import.meta.url).pathname. Reemplázala por fileURLToPath de node:url, como propone el issue. Está terminado cuando pnpm build se completa en Windows y el alias se resuelve a src/vendor/limrun-delta-sync-omitted.ts.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
pnpm build fails on a Windows host:
Could not resolve '@limrun/xdelta3-wasm' ... Matched alias not found
tsdown.config.ts builds the vendor-alias target with new URL(..., import.meta.url).pathname, which yields a POSIX-shaped path on Windows:
'@limrun/xdelta3-wasm': new URL('./src/vendor/limrun-delta-sync-omitted.ts', import.meta.url)
.pathname,
For file:///C:/.../src/vendor/limrun-delta-sync-omitted.ts, .pathname returns /C:/.../src/vendor/limrun-delta-sync-omitted.ts — a path with a leading slash before the drive letter, which no resolver can match.
Scope
Build-time only, for someone building from source on Windows. It does not affect running a published package, since releases are built on the Linux lanes.
Pre-existing, not introduced by any currently open PR. Present on main and on a7821ef58 (fix/windows-daemon-start-3291), whose diff does not touch tsdown.config.ts. Last change to the file: 0c1ebb33a, feat(provider-webdriver): add TestMu AI device cloud provider (#3118).
Fix
Use fileURLToPath from node:url:
import { fileURLToPath } from 'node:url';
'@limrun/xdelta3-wasm': fileURLToPath(new URL('./src/vendor/limrun-delta-sync-omitted.ts', import.meta.url)),
The reporter confirmed the build completes with that change, and ran the full native Windows checklist on top of it.
Found by
pai-scaffolde while building this head natively on Windows 11 — evidence at https://github.com/callstack/agent-device/pull/3330#issuecomment-6084583110. They offered to open a PR for it.
- Lenguaje dominante
- TypeScript
- Estrellas
- 4.9k
- Forks
- 328
- Merge medio
- 12 h 18 min
- PR fusionados (30 d)
- 538
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstack/agent-device
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
callstack/agent-device#1869 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
callstack/agent-device#3392 ·
Los mantenedores suelen responder en 1 día
-
settings permission --app writes a display name as the bundle id instead of resolving itPosiblemente ocupada @thymikee la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 22/100
callstack/agent-device#3384 ·
Los mantenedores suelen responder en 1 día
-
iOS: a canceled request releases the session lock while its runner command still runs on the devicePosiblemente ocupada @thymikee la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
callstack/agent-device#3383 ·
Los mantenedores suelen responder en 1 día
-
Extract the Maestro engine as a plugin (0.22)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertorefactor
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
callstack/agent-device#3377 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstack/agent-device
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NousResearch/hermes-agent#136483 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Tool errors containing cycles or BigInt crash getErrorMessage and replace the original failureAbiertofactory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
vercel/ai#22796 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Web chat input doesn't regain focus after a reply finishesPosiblemente ocupada @GaijinSystems la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
zeroclaw-labs/zeroclaw#11658 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
babylonlabs-io/babylon-toolkit#2711 ·
Los mantenedores suelen responder en 1 día