Skip to content

Commit a12c76a

Browse files
committed
types
1 parent 9d114d5 commit a12c76a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/next/src/build/webpack-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const NEXT_PROJECT_ROOT_DIST_CLIENT = path.join(
8787
)
8888

8989
const isWebpackServerLayer = (layer: WebpackLayerName | null) =>
90-
Boolean(layer && WEBPACK_LAYERS.GROUP.server.includes(layer))
90+
Boolean(layer && WEBPACK_LAYERS.GROUP.server.includes(layer as any))
9191

9292
if (parseInt(React.version) < 18) {
9393
throw new Error('Next.js requires react >= 18.2.0 to be installed.')

packages/next/src/lib/metadata/metadata.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,5 @@ export function createMetadataComponents({
129129
return null
130130
}
131131

132-
// @ts-expect-error async server components
133132
return [MetadataTree, MetadataOutlet]
134133
}

packages/next/src/server/app-render/app-render.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ export async function renderToHTMLOrFlight(
11051105
isPrefetch && !Boolean(components.loading)
11061106
? null
11071107
: // Create component tree using the slice of the loaderTree
1108-
// @ts-expect-error TODO-APP: fix async component type
1108+
11091109
React.createElement(async () => {
11101110
const { Component } = await createComponentTree(
11111111
// This ensures flightRouterPath is valid and filters down the tree

0 commit comments

Comments
 (0)