File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
build/webpack/loaders/next-app-loader Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ const nextAppLoader: AppLoader = async function nextAppLoader() {
835
835
const [ createdRootLayout , rootLayoutPath ] = await verifyRootLayout ( {
836
836
appDir : appDir ,
837
837
dir : rootDir ! ,
838
- tsconfigPath : tsconfigPath ! ,
838
+ tsconfigPath : tsconfigPath ,
839
839
pagePath,
840
840
pageExtensions,
841
841
} )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export async function verifyRootLayout({
63
63
} : {
64
64
dir : string
65
65
appDir : string
66
- tsconfigPath : string
66
+ tsconfigPath : string | undefined
67
67
pagePath : string
68
68
pageExtensions : PageExtensions
69
69
} ) : Promise < [ boolean , string | undefined ] > {
@@ -112,7 +112,8 @@ export async function verifyRootLayout({
112
112
}
113
113
114
114
if ( typeof availableDir === 'string' ) {
115
- const resolvedTsConfigPath = path . join ( dir , tsconfigPath )
115
+ const tsConfigFileName = tsconfigPath || 'tsconfig.json'
116
+ const resolvedTsConfigPath = path . join ( dir , tsConfigFileName )
116
117
const hasTsConfig = await fs . access ( resolvedTsConfigPath ) . then (
117
118
( ) => true ,
118
119
( ) => false
You can’t perform that action at this time.
0 commit comments