Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Conversation

@threehams
Copy link
Contributor

The example tsconfig.json specifies the option: "baseUrl": ".",

This has two negative effects:

  • TypeScript allows paths such as import Component from "components/Component" but Babel does not by default. Typical NextJS configurations don't allow paths like this, so this results in uncaught runtime errors.
  • Typescript / VSCode's auto-import will use these invalid paths instead of relative paths.

The example `tsconfig.json` specifies the option: `"baseUrl": ".",`

This has two negative effects:
- TypeScript allows paths such as `import Component from "components/Component"` but Babel does not by default. Typical NextJS configurations don't allow paths like this, so this results in uncaught runtime errors.
- Typescript / VSCode's auto-import will use these invalid paths instead of relative paths.
@timneutkens timneutkens merged commit 8d58b41 into vercel:master Dec 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants