diff --git a/packages/remix-dev/cli/commands.ts b/packages/remix-dev/cli/commands.ts index 2be927e0123..5e006a11f8d 100644 --- a/packages/remix-dev/cli/commands.ts +++ b/packages/remix-dev/cli/commands.ts @@ -334,9 +334,9 @@ export async function generateEntry( return; } - let clientRuntime = deps["@remix-run/react"] ? "react" : undefined; + let clientRenderer = deps["@remix-run/react"] ? "react" : undefined; - if (!clientRuntime) { + if (!clientRenderer) { console.error( colors.error( `Could not determine runtime. Please install the following: @remix-run/react` @@ -348,12 +348,12 @@ export async function generateEntry( let defaultsDirectory = path.resolve(__dirname, "..", "config", "defaults"); let defaultEntryClient = path.resolve( defaultsDirectory, - `entry.client.${clientRuntime}-${type}.tsx` + `entry.client.${clientRenderer}-${type}.tsx` ); let defaultEntryServer = path.resolve( defaultsDirectory, serverRuntime, - `entry.server.${clientRuntime}-${type}.tsx` + `entry.server.${clientRenderer}-${type}.tsx` ); let isServerEntry = entry === "entry.server"; diff --git a/packages/remix-dev/config.ts b/packages/remix-dev/config.ts index bbd4f17fa55..df24ed46bdc 100644 --- a/packages/remix-dev/config.ts +++ b/packages/remix-dev/config.ts @@ -492,11 +492,11 @@ export async function readConfig( ); } - let clientRuntime = deps["@remix-run/react"] ? "react" : undefined; + let clientRenderer = deps["@remix-run/react"] ? "react" : undefined; - if (!clientRuntime) { + if (!clientRenderer) { throw new Error( - `Could not determine runtime. Please install the following: @remix-run/react` + `Could not determine renderer. Please install the following: @remix-run/react` ); } @@ -536,15 +536,15 @@ export async function readConfig( }); } - entryServerFile = `${serverRuntime}/entry.server.${clientRuntime}-${type}.tsx`; + entryServerFile = `${serverRuntime}/entry.server.${clientRenderer}-${type}.tsx`; } if (userEntryClientFile) { entryClientFile = userEntryClientFile; } else { - let clientRuntime = deps["@remix-run/react"] ? "react" : undefined; + let clientRenderer = deps["@remix-run/react"] ? "react" : undefined; - if (!clientRuntime) { + if (!clientRenderer) { throw new Error( `Could not determine runtime. Please install the following: @remix-run/react` ); @@ -564,7 +564,7 @@ export async function readConfig( ? "stream" : "string"; - entryClientFile = `entry.client.${clientRuntime}-${type}.tsx`; + entryClientFile = `entry.client.${clientRenderer}-${type}.tsx`; } let entryClientFilePath = userEntryClientFile