diff --git a/packages/next/src/client/dev/dev-build-watcher.ts b/packages/next/src/client/dev/dev-build-watcher.ts index e9897a8216..b158b536cb 100644 --- a/packages/next/src/client/dev/dev-build-watcher.ts +++ b/packages/next/src/client/dev/dev-build-watcher.ts @@ -8,8 +8,7 @@ export default function initializeBuildWatcher( toggleCallback: (cb: (event: string | { data: string }) => void) => void, position = 'bottom-right' ) { - const type = 'div' as string - const shadowHost = document.createElement(type) + const shadowHost = document.createElement('div') const [verticalProperty, horizontalProperty] = position.split('-') as [ VerticalPosition, HorizonalPosition