Skip to content

Commit 233b0e0

Browse files
Improve missing package.json error message
1 parent bf5790a commit 233b0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router-dev/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ export async function resolveEntryFiles({
855855

856856
if (!packageJsonPath) {
857857
throw new Error(
858-
`Could not find package.json in ${rootDirectory} or any of its parent directories`
858+
`Could not find package.json in ${rootDirectory} or any of its parent directories. Please add a package.json, or provide a custom entry.server.tsx/jsx file in your app directory.`
859859
);
860860
}
861861

0 commit comments

Comments
 (0)