Skip to content

Commit

Permalink
Fix typos in Turbopack configuration and in Node.js loader error mess…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
GregBrimble committed Aug 4, 2024
1 parent d17e9d1 commit 330b2d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/react-server-dom-esm/src/ReactFlightESMNodeLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ async function transformClientModule(
newSrc +=
'throw new Error(' +
JSON.stringify(
`Attempted to call the default export of ${url} from the server` +
`Attempted to call the default export of ${url} from the server ` +
`but it's on the client. It's not possible to invoke a client function from ` +
`the server, it can only be rendered as a Component or passed to props of a` +
`the server, it can only be rendered as a Component or passed to props of a ` +
`Client Component.`,
) +
');';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ async function transformClientModule(
newSrc +=
'throw new Error(' +
JSON.stringify(
`Attempted to call the default export of ${url} from the server` +
`Attempted to call the default export of ${url} from the server ` +
`but it's on the client. It's not possible to invoke a client function from ` +
`the server, it can only be rendered as a Component or passed to props of a` +
`the server, it can only be rendered as a Component or passed to props of a ` +
`Client Component.`,
) +
');';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ async function transformClientModule(
newSrc +=
'throw new Error(' +
JSON.stringify(
`Attempted to call the default export of ${url} from the server` +
`Attempted to call the default export of ${url} from the server ` +
`but it's on the client. It's not possible to invoke a client function from ` +
`the server, it can only be rendered as a Component or passed to props of a` +
`the server, it can only be rendered as a Component or passed to props of a ` +
`Client Component.`,
) +
');';
Expand Down
10 changes: 5 additions & 5 deletions scripts/shared/inlinedHostConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ module.exports = [
'react-server-dom-turbopack/client.node.unbundled',
'react-server-dom-turbopack/server',
'react-server-dom-turbopack/server.node.unbundled',
'react-server-dom-turbopack/src/ReactFlightDOMServerNode.js', // react-server-dom-webpack/server.node.unbundled
'react-server-dom-turbopack/src/ReactFlightDOMClientNode.js', // react-server-dom-webpack/client.node.unbundled
'react-server-dom-turbopack/src/ReactFlightDOMServerNode.js', // react-server-dom-turbopack/server.node.unbundled
'react-server-dom-turbopack/src/ReactFlightDOMClientNode.js', // react-server-dom-turbopack/client.node.unbundled
'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerNode.js',
'react-server-dom-turbopack/node-register',
'react-server-dom-turbopack/src/ReactFlightTurbopackNodeRegister.js',
Expand Down Expand Up @@ -162,7 +162,7 @@ module.exports = [
'react-server-dom-turbopack/server',
'react-server-dom-turbopack/server.node',
'react-server-dom-turbopack/src/ReactFlightDOMServerNode.js', // react-server-dom-turbopack/server.node
'react-server-dom-turbopack/src/ReactFlightDOMClientNode.js', // react-server-dom-webpack/client.node
'react-server-dom-turbopack/src/ReactFlightDOMClientNode.js', // react-server-dom-turbopack/client.node
'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopack.js',
'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopackServer.js',
'react-server-dom-turbopack/node-register',
Expand Down Expand Up @@ -371,8 +371,8 @@ module.exports = [
'react-server-dom-turbopack',
'react-server-dom-turbopack/client.edge',
'react-server-dom-turbopack/server.edge',
'react-server-dom-turbopack/src/ReactFlightDOMClientEdge.js', // react-server-dom-webpack/client.edge
'react-server-dom-turbopack/src/ReactFlightDOMServerEdge.js', // react-server-dom-webpack/server.edge
'react-server-dom-turbopack/src/ReactFlightDOMClientEdge.js', // react-server-dom-turbopack/client.edge
'react-server-dom-turbopack/src/ReactFlightDOMServerEdge.js', // react-server-dom-turbopack/server.edge
'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopack.js',
'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopackServer.js',
'react-devtools',
Expand Down

0 comments on commit 330b2d4

Please sign in to comment.