payload generate:importmap crashes on a new Next.js app
メンテナーはふだん 1 日以内に返信
@Razepriv がすでに取り組んでいます。
2026年11月13日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 56/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- next.js, node.js, typescript
調査の方向性
Start by tracing how the Payload CLI loads its bin through the bundled tsx loader and how that path loads undici's CommonJS entry. Reproduce with Node 26.9.0, Payload 3.93.0, and a payload.config.ts, then run npx payload generate:importmap. Done means the CLI completes and writes the import map without the CacheStorage constructor error.
索引モデルが issue の本文から書いたものです。
説明
Describe the Bug
payload generate:importmap crashes before it writes an import map. This happens on a brand-new Next.js app once payload.config.ts exists. The same crash happens on an existing app. Node was 26.9.0. Payload was 3.93.0.
TypeError: Illegal constructor
at new CacheStorage (node_modules/undici/lib/web/cache/cachestorage.js:17:14)
at Object.<anonymous> (node_modules/undici/index.js:177:25)
at Object.transformer [as .js] (node_modules/tsx/dist/require-CBjy4Foe.mjs)
The Payload CLI loads its bin through the bundled tsx loader. That loader compiles undici's CommonJS entry, and CacheStorage's constructor check then throws.
next dev is a separate path. This report is only the CLI.
Link to the code that reproduces this issue
No public repository yet. Steps below create the reproduction from scratch with create-next-app and [email protected]. Happy to push that tree if a hosted repo is required.
Reproduction Steps
npx create-next-app@latest payload-next-repro --ts --tailwind --eslint --app --turbopack --use-npm --disable-git --yes
cd payload-next-repro
npm install [email protected]
Create payload.config.ts:
import { buildConfig } from 'payload'
export default buildConfig({
collections: [],
secret: 'test-secret',
})
Then run:
npx payload generate:importmap
Before payload.config.ts exists, the CLI starts and stops with "cannot find Payload config". After the file exists, it crashes in undici CacheStorage as shown above.
Which area(s) are affected?
area: core
Environment Info
Node.js: 26.9.0
npm: 11.19.1
next: 16.4.6
payload: 3.93.0
react: 19.3.0
OS: macOS, arm64
Package type: CommonJS (no "type": "module")
- 主要言語
- TypeScript
- スター
- 45.8k
- フォーク
- 4.4k
- 平均マージ
- 3日 4時間
- マージ済み PR(30日)
- 210
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
payloadcms/payload のほかの issue
-
area: ui Bug Payload OSS
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
payloadcms/payload#19839 ·
メンテナーはふだん 1 日以内に返信
-
Accessibility: list row and select-all checkboxes still unnamed in 3.x (#17376 fix not in 3.91)オープンBug Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
payloadcms/payload#19837 ·
メンテナーはふだん 1 日以内に返信
-
Bug Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
payloadcms/payload#19835 ·
メンテナーはふだん 1 日以内に返信
-
Bug Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
payloadcms/payload#19833 ·
メンテナーはふだん 1 日以内に返信
-
Bug Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
payloadcms/payload#19832 ·
メンテナーはふだん 1 日以内に返信
payloadcms/payload の issue をすべて見る
似ている issue
-
[BUG]: Shared links drop the configured basePath on GitHub Pages対応中かも @anshulchikhale30-p が今日担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
StabilityNexus/IdentityTokens-EVM-Frontend#182 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add: GTrekkerオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Koenkk/zigbee-herdsman-converters#13900 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
jeanibarz/knowledge-base-mcp-server#1291 ·
メンテナーはふだん 1 日以内に返信