The folder reactpress/config/src/ is empty
ReactPress tries to compile TypeScript config files with:
tsc src/*.ts
…but since there are no .ts files inside /config/src, the build script fails.
This is a known bug in ReactPress v1.6.0.
Fix 1 — Create an empty TypeScript file
This is the easiest fix and works immediately.
Inside:
reactpress/config/src/
Create a file named:
index.ts
It can be empty or contain:
export {};
Then run:
pnpm run dev
✔ Build passes
✔ ReactPress starts
✔ No impact on functionality
Fix 2 — Change the config build command to avoid wildcard
Open:
reactpress/config/package.json
Find this line:
"build": "tsc src/*.ts --outDir lib --skipLibCheck --declaration"
Replace it with:
"build": "tsc --project tsconfig.json"
Or simply:
"build": "tsc"
Then run:
pnpm run dev
✔ Works even if src/ is empty
✔ Correct TypeScript behavior
Fix 3 — Copy missing config files from a working version
If you want the intended default config, copy from ReactPress 1.5 or 1.4:
Create files:
reactpress/config/src/index.ts
reactpress/config/src/types.ts
Example content:
index.ts
export const defaultConfig = {};
types.ts
export type Config = Record<string, any>;
Then run again.