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
(cherry picked from commit 44fc0b6)
  • Loading branch information
valentinpalkovic authored and storybook-bot committed Apr 5, 2024
1 parent 16fc87e commit 064dc95
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 064dc95

Please sign in to comment.