`next start path-to-project` breaks config loading.

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

@Tanu1201 がすでに取り組んでいます。

2024年5月14日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
next.js

調査の方向性

モノレポのルートからビルドを実行した後、next start projects/wp-nextjs を実行して失敗を再現し、projects/wp-nextjs 内で next start を実行した場合と比較します。エントリーポイント next start path-to-project と設定の読み込み動作を追跡します。パス形式から設定が読み込まれるか、サポートされていない呼び出しであることが明確に文書化されていれば完了です。

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

説明

Describe the bug

Because next start path-to-project apparentlys makes process.cwd() be where the next command was executed from, it breaks config loading.

I'm not sure if we can actually fix this, maybe we just need to document that next path-to-project isn't supported by HeadstartWP

Steps to Reproduce
  1. Do a build
  2. From the root of the monorepo run next start projects/wp-nextjs
  3. See an error about the config.
  4. Now run next start directly in projects/wp-nextjs and there's not issue.
Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要言語
TypeScript
スター
204
フォーク
26
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

10up/headstartwp のほかの issue

10up/headstartwp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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