next.js build: building contentlayer prior to TSC or adding more clear docs
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- next.js, typescript
調査の方向性
公式のGetting Startedサンプルとそのpackage.jsonのbuildスクリプトから始め、次に.contentlayerがない環境でCIの失敗を再現します。ドキュメントに記載されたbuildコマンドの前にContentlayerの実行が必要かどうかを確認します。サンプルが正常にビルドされ、ドキュメントに必要なコマンドまたは確認済みのサポート対象の動作が反映されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When following the official Getting Started example for Next.js, the app fails to build on CI or any environemnt where .contentlayer doesn't exist already.
This appears to be because TSC runs prior to contentlayer, which errors out.
I'm not sure if this can be changed at all (to run a Next plugin prior to the TSC step). That would seem like the ideal solution, but otherwise, would be great to update the documentation & examples to modify the build step
"scripts": {
"build": "contentlayer && next build"
}
I'm happy to make a PR to help out, just wanted to check if this is indeed an issue that others experience or if I'm really missing something basic
- 主要言語
- TypeScript
- スター
- 132
- フォーク
- 56
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
contentlayerdev/website のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
contentlayerdev/website#113 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
contentlayerdev/website#110 · コメント 3 件 ·
-
Update header links オープンpage: blog
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
contentlayerdev/website#97 ·
-
documentation
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
contentlayerdev/website#96 ·
-
page: docs page: home
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
contentlayerdev/website#95 ·
contentlayerdev/website の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
TanStack/tanstack.com#1293 ·