Skip to content

Update baseUrl and paths in tsconfig.json #125

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

avanderhoorn
Copy link
Collaborator

With updates to start using tsgo we are seeing the following class of errors:

  Use '"paths": {"*": "./*"}' instead.

24     "baseUrl": ".",
       ~~~~~~~~~
tsconfig.json:27:9 - error TS5090: Non-relative paths are not allowed. Did you forget a leading './'?

27         "src/*"
           ~~~~~~~

Found 2 errors in the same file, starting at: tsconfig.json:24```

https://www.typescriptlang.org/tsconfig/#baseUrl
> As of TypeScript 4.1, baseUrl is no longer required to be set when using paths.

With updates to start using `tsgo` we are seeing the following class of errors:

```tsconfig.json:24:5 - error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration.
  Use '"paths": {"*": "./*"}' instead.

24     "baseUrl": ".",
       ~~~~~~~~~
tsconfig.json:27:9 - error TS5090: Non-relative paths are not allowed. Did you forget a leading './'?

27         "src/*"
           ~~~~~~~

Found 2 errors in the same file, starting at: tsconfig.json:24```

https://www.typescriptlang.org/tsconfig/#baseUrl
> As of TypeScript 4.1, baseUrl is no longer required to be set when using paths.
@Copilot Copilot AI review requested due to automatic review settings August 15, 2025 15:54
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants