Vite warning

Abierto
#860 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
64/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
build-system

Línea de trabajo

Empieza con vite.config.mts y los cinco archivos bajo vite-config/ mencionados en la advertencia, y luego ejecuta el build para reproducirla. Comprueba el package.json más cercano y la configuración actual de módulos antes de hacer cambios. Se considera terminado cuando el build se completa sin las advertencias de native-loader y de módulos indicadas, comprobando por separado la advertencia de sourcemap.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

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 .mjs extension 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 .mjs extension 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 .mjs extension 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 .mjs extension 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 .mjs extension or set "type": "module" in the closest package.json
    Set VITE_CONFIG_NATIVE_IGNORE_WARNING=true to 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

Lenguaje dominante
TypeScript
Estrellas
153
Forks
46
Merge medio
1 d 8 h
PR fusionados (30 d)
7

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SolidOS/solid-ui

Todos los issues de SolidOS/solid-ui

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.