solidjs / solidjs/solid-vite-plugin
During dev mode, each time node_modules package imports file internally, makes that module have unique identity.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 520
- Forks
- 70
- Ø Merge
- 23 Std. 35 Min.
- Gemergte PRs (30 T.)
- 39
Beschreibung
During dev mode, each time node_modules package imports file internally, makes that module have unique identity.
// inside node_modules/some-package
// a.js
export const uniqueVariable = {}
// b.jsx
import { uniqueVariable } from './a'
export compare = (variable) => uniqueVariable === variable
// index.jsx
import { uniqueVariable } from './a'
import { compare } from './b'
compare(uniqueVariable) // Produces false
After updating to latest Solid version, from Solid 1.4.4 I noticed that useContext broke with my library, and that lead me to discovering this issue. The issue only occurs during dev mode and only inside with node_modules.
I manually edited node_module of my package to check.

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der verknüpften Reproduktion und vergleiche die in a.js, b.jsx und index.jsx angezeigten Modulimporte im Entwicklungsmodus. Verfolge, warum die internen Importe des Pakets unterschiedliche Modulidentitäten erzeugen, und überprüfe anschließend, dass compare(uniqueVariable) in der Reproduktion nicht mehr false zurückgibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript, vite
- Bereich
- build-system, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100