Vite warning
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 64/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- build-system
Direzione di ricerca
Inizia con vite.config.mts e i cinque file sotto vite-config/ indicati nell’avviso, quindi esegui la build per riprodurlo. Controlla il package.json più vicino e le impostazioni attuali dei moduli prima di apportare modifiche. Il lavoro è completato quando la build termina senza gli avvisi native-loader e relativi ai moduli elencati, verificando separatamente l’avviso sourcemap.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I think we will need to change the toolkit so that we have .mjs build files generated and change the type to module. we get this warning when running the build
(!) Your Vite config uses features that are unsupported by configLoader: 'native', which is planned to become the default in a future major version of Vite:
- import "./vite-config/css" without a file extension (vite.config.mts:7:17). Add the file extension
- import "./vite-config/resolve" without a file extension (vite.config.mts:8:27). Add the file extension
- import "./vite-config/styles" without a file extension (vite.config.mts:9:26). Add the file extension
- import "./vite-config/cdn" without a file extension (vite.config.mts:10:44). Add the file extension
- import "./vite-config/components" without a file extension (vite.config.mts:11:82). Add the file extension
- ESM syntax in a file loaded as CommonJS (vite-config/css.ts:2:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/resolve.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/styles.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/cdn.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/components.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json
SetVITE_CONFIG_NATIVE_IGNORE_WARNING=trueto suppress this warning.
vite v8.2.1 building client environment for cdn-legacy...
✓ 333 modules transformed.
computing gzip size...
dist/solid-ui.js 1,353.32 kB
dist/solid-ui.min.js 1,353.32 kB │ gzip: 385.05 kB │ map: 4,235.03 kB
[plugin @tailwindcss/vite:generate:build] [SOURCEMAP_BROKEN] Sourcemap is likely to be incorrect: a plugin (@tailwindcss/vite:generate:build) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help: https://rolldown.rs/guide/troubleshooting#warning-sourcemap-is-likely-to-be-incorrect
- Lingua principale
- TypeScript
- Stelle
- 153
- Fork
- 46
- Merge medio
- 1g 8h
- PR unite (30g)
- 7
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SolidOS/solid-ui
-
enhancement
-
enhancement
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
enhancement
Tutte le issue di SolidOS/solid-ui
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
0xMiden/bridge-portal#132 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area:tools bug good first issue help wanted priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
newrelic-experimental/preflight#793 · 1 commento ·