Skip to content

Can't start server on clean install #10865

@dbsmck

Description

@dbsmck

Describe the Bug

App won't open/run in new installation

Link to the code that reproduces this issue

pnpm dev

Reproduction Steps

Create new environment, running node 22 (or 20).

npx create-payload-app

tried both postgres and sqlite

install successful, cd into directory

pnpm dev

starts. load localhost:3000

Attempted import error: 'WebStreamReader' is not exported from 'peek-readable' (imported as 'WebStreamReader').

Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/strtok3/lib/core.js
./node_modules/.pnpm/[email protected]/node_modules/file-type/core.js
./node_modules/.pnpm/[email protected]/node_modules/file-type/index.js
./node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/payload/dist/uploads/getFileByPath.js
./node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/payload/dist/index.js
./src/app/(frontend)/page.tsx
 ⨯ ./node_modules/.pnpm/[email protected]/node_modules/strtok3/lib/core.js
Attempted import error: 'WebStreamReader' is not exported from 'peek-readable' (imported as 'WebStreamReader').

Which area(s) are affected? (Select all that apply)

area: core, area: ui

Environment Info

nodejs 22 or 20 / nextjs 15
mac os x
pnpm installed with brew

cant run pnpm payload info:
training/work/node_modules/.pnpm/[email protected]/node_modules/strtok3/lib/core.js?tsx-namespace=1738158941192:1
import { StreamReader, WebStreamReader } from 'peek-readable';
                       ^^^^^^^^^^^^^^^
SyntaxError: The requested module 'peek-readable' does not provide an export named 'WebStreamReader'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
    at async start (XZY/projects/training/work/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/payload/bin.js:29:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions