Skip to content

Commit

Permalink
Merge pull request #26651 from storybookjs/yann/fix-tsconfig-paths-ne…
Browse files Browse the repository at this point in the history
…xtjs

NextJS: Support path aliases when no base url is set
  • Loading branch information
valentinpalkovic authored Mar 27, 2024
2 parents de173e8 + d80b2fb commit 44fc0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/frameworks/nextjs/src/imports/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 44fc0b6

Please sign in to comment.