Vinext production build leaves tilde-alias SVG URLs unresolved
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- next.js, typescript, vite
- 領域
- build-system, frontend
調査の方向性
Start with web/app/components/datasets/documents/style.module.css and web/app/components/workflow/run/status-container.tsx, then run pnpm --dir web exec vp build with DevTools analysis disabled. Inspect emitted CSS under web/dist/client/_next/static/css/ and compare the affected document icons and workflow backgrounds in production preview, including light and dark states. Done means no unresolved ~@/ references remain while the supported Next.js build path stays compatible.
索引モデルが issue の本文から書いたものです。
説明
Self Checks
- I have read the Contributing Guide and Language Policy.
- This is only for bug reports; questions belong in Discussions.
- I have searched for existing issues, including closed ones.
- I confirm that I am using English to submit this report.
- 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- I have filled in the required template fields.
Dify version
1.17.1 development checkout, base 06e473015a9a1abb71da88ac0a0e92d96a992008; local Vinext build with Vite+ core 0.3.2, Vinext 1.0.0-beta.10, Node 24.21.0.
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
- Install the workspace dependencies and build the Vinext frontend, e.g.
pnpm --dir web exec vp buildwith DevTools analysis disabled. - Observe unresolved resource warnings for
~@/assets/*.svgand~@/app/components/workflow/run/assets/*.svg. - Inspect generated CSS under
web/dist/client/_next/static/css/. The output still contains literal URLs such asurl(~@/assets/pdf.svg)andurl(~@/app/components/workflow/run/assets/highlight.svg).
The source patterns are also present in upstream main at the linked revision:
- web/app/components/datasets/documents/style.module.css
- web/app/components/workflow/run/status-container.tsx
Example warning:
~@/assets/pdf.svg?vinext_css_url_asset=pdf.svg referenced in ~@/assets/pdf.svg?vinext_css_url_asset=pdf.svg didn't resolve at build time, it will remain unchanged to be resolved at runtime
✔️ Expected Behavior
The Vinext build resolves these assets to deployable URLs. Document icons and workflow status backgrounds should remain available in the production preview.
Acceptance criteria:
- No unresolved
~@/asset references remain in emitted CSS for these components. - Verify document-type icons and workflow status backgrounds in production preview, including light/dark states.
- Retain compatibility with the supported Next.js build path.
❌ Actual Behavior
16 distinct SVG paths remain unresolved in the build output. The browser cannot interpret ~@/ as the project alias, so these references can request nonexistent relative resources. This report establishes the unresolved emitted URLs; a separate production-preview visual/network check should verify every affected component.
The warnings and emitted URLs occur both with and without DevTools analysis. Ordinary compilation exits successfully, so this is a resource-resolution correctness issue rather than a build crash. It was reproduced in the local development checkout described above; no claim is made that the Next.js build has the same behavior.
- 主要言語
- TypeScript
- スター
- 157k
- フォーク
- 24.7k
- 平均マージ
- 22時間 32分
- マージ済み PR(30日)
- 611
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
langgenius/dify のほかの issue
-
Annotation Reply: a stored score threshold of 0.0 is silently replaced with 1, disabling the feature オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
langgenius/dify#42639 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
langgenius/dify#42468 · コメント 1 件 · リアクション 1 件 ·
-
🐞 bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
langgenius/dify#42446 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
langgenius/dify#42355 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
langgenius/dify#42350 · コメント 1 件 · リアクション 1 件 ·
langgenius/dify の issue をすべて見る
似ている issue
-
calcite-components needs triage refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Esri/calcite-design-system#15203 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Automattic/studio#4908 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100