Skip to content

Commit

Permalink
Modify tailwindcss related dependency of create-next-app (#57262)
Browse files Browse the repository at this point in the history
### What?
If the version of `autoprefixer` is 10.0.0 and the version of `tailwindcss` is less than 3.3.0, the error `RangeError: Maximum call stack size exceeded` occurs when you create with tailwindcss & typescript and run it.

### Why?
The exact reason is unknown, but it appears to be a compatibility issue. Also, currently configuring tailwindcss with ts makes the tailwind config file in ts, which is supported since tailwindcss version 3.3.0. (In js, it works even if you set the version of `autoprefixer` to 10.0.1 and lower the version of tailwindcss.)

### How?
Simply default the minimum version of `autoprefixer` to 10.0.1 and the minimum version of `tailwindcss` to 3.3.0.
  • Loading branch information
moka-ayumu committed Oct 30, 2023
1 parent 6dc7c3c commit 0623a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-next-app/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ export const installTemplate = async ({
if (tailwind) {
packageJson.devDependencies = {
...packageJson.devDependencies,
autoprefixer: '^10',
autoprefixer: '^10.0.1',
postcss: '^8',
tailwindcss: '^3',
tailwindcss: '^3.3.0',
}
}

Expand Down

0 comments on commit 0623a4f

Please sign in to comment.