Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Plugin & Middleware are out of order

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nuxt, typescript
領域
frontend

調査の方向性

リンクされている StackBlitz の再現コードから始め、特に plugins/hello.ts と middleware/auth.global.ts に注目して、それらの実行順序とランディングページでの middleware の二重実行を確認します。再現に関係する Nuxt のプラグインおよび middleware のライフサイクルを追跡します。プラグインが常に middleware より先に実行され、middleware が 2 回実行されなければ完了です。

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

説明

bug
🐛 The bug

Currently the issue is visible in the playground, seems that plugins and middleware's are in a race condition.
Not sure how this was not reported. This is pretty major and breaking bug where everything is misfiring. Changes to router behavior are to be expected although even middleware fires twice on landing. If i wasn't blocking UI until I had to add OIDC authentication I guess I wouldn't notice it too.

🛠️ To reproduce

https://stackblitz.com/edit/github-hn98fch1-serjiw7u?file=plugins%2Fhello.ts,middleware%2Fauth.global.ts

🌈 Expected behaviour

Plugins run before middleware, middleware waits for plugin

ℹ️ Additional context

No response

主要言語
TypeScript
スター
458
フォーク
53
平均マージ
16時間 28分
マージ済み PR(30日)
19

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

nuxt-modules/ionic のほかの issue

nuxt-modules/ionic の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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