Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with TS alias without basePath #11693

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Conversation

callingmedic911
Copy link
Member

Closes #11686.

I think this was accidentally introduced when we removed baseUrl . The change assumes rootDir as the fallback if there's no baseUrl (default TS behaviour).

@callingmedic911 callingmedic911 added the release:fix This PR is a fix label Oct 10, 2024
@callingmedic911 callingmedic911 added this to the next-release-patch milestone Oct 10, 2024
@callingmedic911 callingmedic911 self-assigned this Oct 10, 2024
Copy link

@justinadkins justinadkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I tested locally and path aliasing is working now. Unrelated to my ticket but one limitation of Redwood path aliasing feature currently is it requires /*. I discovered this while testing this fix. We cannot do something like: "#*": ["./src/components/*"], at the moment.

Thank you for the fix!

@dthyresson dthyresson merged commit 3e556a1 into main Oct 14, 2024
50 checks passed
@dthyresson dthyresson deleted the aditya/fix-build-ts-path branch October 14, 2024 12:12
Josh-Walker-GM pushed a commit that referenced this pull request Nov 14, 2024
Closes #11686.

I think this was accidentally introduced when [we removed `baseUrl`
](#9944). The change assumes
rootDir as the fallback if there's no baseUrl (default TS behaviour).
Josh-Walker-GM pushed a commit that referenced this pull request Nov 14, 2024
Closes #11686.

I think this was accidentally introduced when [we removed `baseUrl`
](#9944). The change assumes
rootDir as the fallback if there's no baseUrl (default TS behaviour).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug?]: Typescript path alias regression
5 participants