Vite warning

オープン
#860 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
build-system

調査の方向性

vite.config.mts と、警告で示されている vite-config/ 配下の5つのファイルから始め、その後 build を実行して警告を再現します。変更を加える前に、最も近い package.json と現在のモジュール設定を確認します。記載されている native-loader とモジュールの警告なしに build が完了し、sourcemap の警告は別途確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
153
フォーク
46
平均マージ
1日 8時間
マージ済み PR(30日)
7

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SolidOS/solid-ui のほかの issue

SolidOS/solid-ui の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。