Skip to content

🎥 Make videos programmatically with React

make error overlay work

Jonny Burger72099ae36bee
diff --git a/packages/bundler/package.json b/packages/bundler/package.json
index 5c7119947c..52de2d346b 100644
--- a/packages/bundler/package.json
+++ b/packages/bundler/package.json
@@ -29,6 +29,7 @@
"latest-version": "^5.1.0",
"react-refresh": "^0.9.0-rc.2",
"react-dev-utils": "^12.0.0",
+ "react-error-overlay": "^6.0.10",
"remotion": "2.5.7",
"semver": "7.3.4",
"source-map-loader": "^3.0.0",
diff --git a/packages/bundler/src/error-overlay/index.ts b/packages/bundler/src/error-overlay/index.ts
index e107e3b66a..afb958f300 100644
--- a/packages/bundler/src/error-overlay/index.ts
+++ b/packages/bundler/src/error-overlay/index.ts
@@ -38,6 +38,7 @@ export class ErrorOverlayPlugin {
compiler.hooks.entryOption.tap(
className,
+ // @ts-expect-error
(context: unknown, entry: webpack.EntryNormalized) => {
if (typeof entry !== 'function') {
Object.keys(entry).forEach((entryName) => {
@@ -88,8 +89,6 @@ export class ErrorOverlayPlugin {
entry[entryName] = adjustEntry(devServerEnabled);
});
}
-
- return false;
}
);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 96c0d9c04b..8af7cea290 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -121,6 +121,7 @@ importers:
prettier: ^2.0.5
prettier-plugin-organize-imports: ^1.1.1
react-dev-utils: ^12.0.0
+ react-error-overlay: ^6.0.10
react-refresh: ^0.9.0-rc.2
remotion: 2.5.7
semver: 7.3.4
@@ -138,6 +139,7 @@ importers:
file-loader: [email protected]
latest-version: 5.1.0
react-dev-utils: 12.0.0_4cf92f897cc21eb379a730dec9353afe
+ react-error-overlay: 6.0.10
react-refresh: 0.9.0
remotion: link:../core
semver: 7.3.4