Skip to content

Commit

Permalink
Revert "types"
Browse files Browse the repository at this point in the history
This reverts commit a12c76a.
  • Loading branch information
feedthejim committed Sep 14, 2023
1 parent 906896c commit e2d7da7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const NEXT_PROJECT_ROOT_DIST_CLIENT = path.join(
)

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

if (parseInt(React.version) < 18) {
throw new Error('Next.js requires react >= 18.2.0 to be installed.')
Expand Down
1 change: 1 addition & 0 deletions packages/next/src/lib/metadata/metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,6 @@ export function createMetadataComponents({
return null
}

// @ts-expect-error async server components
return [MetadataTree, MetadataOutlet]
}
2 changes: 1 addition & 1 deletion packages/next/src/server/app-render/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ export async function renderToHTMLOrFlight(
isPrefetch && !Boolean(components.loading)
? null
: // Create component tree using the slice of the loaderTree

// @ts-expect-error TODO-APP: fix async component type
React.createElement(async () => {
const { Component } = await createComponentTree(
// This ensures flightRouterPath is valid and filters down the tree
Expand Down

0 comments on commit e2d7da7

Please sign in to comment.