We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d05df3 commit 4600fbdCopy full SHA for 4600fbd
node_package/src/ReactOnRailsRSC.ts
@@ -1,4 +1,3 @@
1
-import type { ReactElement } from 'react';
2
// @ts-expect-error will define this module types later
3
import { renderToReadableStream } from 'react-server-dom-webpack/server.edge';
4
import { PassThrough } from 'stream';
@@ -29,7 +28,7 @@ const stringToStream = (str: string) => {
29
28
const getBundleConfig = () => {
30
const bundleConfig = JSON.parse(fs.readFileSync('./public/webpack/development/react-client-manifest.json', 'utf8'));
31
// remove file:// from keys
32
- const newBundleConfig: { [key: string]: any } = {};
+ const newBundleConfig: { [key: string]: unknown } = {};
33
for (const [key, value] of Object.entries(bundleConfig)) {
34
newBundleConfig[key.replace('file://', '')] = value;
35
}
0 commit comments