diff --git a/code/frameworks/nextjs/src/imports/webpack.ts b/code/frameworks/nextjs/src/imports/webpack.ts index 0b7a45b13bc8..57d837d0fdb2 100644 --- a/code/frameworks/nextjs/src/imports/webpack.ts +++ b/code/frameworks/nextjs/src/imports/webpack.ts @@ -11,8 +11,8 @@ export const configureImports = ({ }): void => { const configLoadResult = loadConfig(configDir); - if (configLoadResult.resultType === 'failed' || !configLoadResult.baseUrl) { - // either not a typescript project or tsconfig contains no baseUrl + if (configLoadResult.resultType === 'failed') { + // either not a typescript project or tsconfig is not found - we bail return; }