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

Commit 8d58b41

Browse files
threehamstimneutkens
authored andcommitted
Remove baseUrl config option. (#357)
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.
1 parent 87a1526 commit 8d58b41

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/next-typescript/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Create a `tsconfig.json` in your project
4444
"compilerOptions": {
4545
"allowJs": true,
4646
"allowSyntheticDefaultImports": true,
47-
"baseUrl": ".",
4847
"jsx": "preserve",
4948
"lib": ["dom", "es2017"],
5049
"module": "esnext",

0 commit comments

Comments
 (0)