Loading 3rd party scripts for unused widget
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- docker, gitlab, node.js, nuxt, typescript
- 領域
- build-system, devops
調査の方向性
dist/module.mjs を通じて bundler-transformer の失敗を追跡し、特に downloadScript を確認するとともに、ビルド出力に示されている未使用の dist/runtime/components/ScriptCalendlyInlineWidget.vue エントリを調査します。ネットワークが制限された環境で npm run build を実行して失敗を再現します。未使用のウィジェットがサードパーティーのダウンロードを引き起こさず、参照されているウィジェットが引き続きスクリプトを読み込めれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I run into an issue where loading a 3rd party widget fails in Gitlab job where the access to the internet is limited. The script that fails if used by a widget that is not used in the app at all. Would it be possible to not even load the 3rd party scripts if they are not referenced by the solution?
System:
@nuxt/scripts: 1.3.6
docker build in Gitlab actions
node:22.23.2
Here is the build output:
[@nuxt/scripts] ℹ Downloading script https://secure.gravatar.com/js/gprofiles.js → d1133547e8a1f280.js (21.38 kB br)
✓ 4471 modules transformed.
ERROR ✗ Build failed in 15.01s
│
■ Nuxt build error: Error: Build failed with 1 error:
│
│ [plugin nuxt:scripts:bundler-transformer] /src/src/MySolution/node_modules/@nuxt/scripts/dist/runtime/components/ScriptCalendlyInlineWidget.vue
│ FetchError: [GET] "https://assets.calendly.com/assets/external/widget.js": <no response> fetch failed
│ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
│ at async $fetchRaw2 (file:///src/src/MySolution/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs:286:14)
│ at async $fetchRaw2 (file:///src/src/MySolution/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs:286:14)
│ at async $fetch2.$fetchRaw2 [as raw] (file:///src/src/MySolution/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs:286:14)
│ at async downloadScript (file:///src/src/MySolution/node_modules/@nuxt/scripts/dist/module.mjs:1137:11)
│ at async file:///src/src/MySolution/node_modules/@nuxt/scripts/dist/module.mjs:1382:40
│ at async TransformPluginContextImpl.handler (file:///src/src/MySolution/node_modules/@nuxt/scripts/dist/module.mjs:1451:13)
│ at async plugin (file:///src/src/MySolution/node_modules/rolldown/dist/shared/bindingify-input-options-COG1sboO.mjs:1537:16)
│ at async plugin.<computed> (file:///src/src/MySolution/node_modules/rolldown/dist/shared/bindingify-input-options-COG1sboO.mjs:2125:12)
│ Caused by:
│ TypeError: fetch failed
│ Caused by:
│ Error: read ECONNRESET
│ at TLSWrap.onStreamRead (node:internal/stream_base_commons:216:20)
ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
- 主要言語
- TypeScript
- スター
- 584
- フォーク
- 91
- 平均マージ
- 1日 36分
- マージ済み PR(30日)
- 29
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nuxt/scripts のほかの issue
-
harlan-agent-wait-to-implement
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
-
harlan-agent-wait-to-implement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Dependency Dashboard オープン
難易度 4/5 3〜5日 初心者へのやさしさ 10/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·