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

Required Typescript >= 4.3.2 but last version is 4.0.8 #26233

Closed
UnPolinomio opened this issue Jun 16, 2021 · 5 comments
Closed

Required Typescript >= 4.3.2 but last version is 4.0.8 #26233

UnPolinomio opened this issue Jun 16, 2021 · 5 comments
Labels
please add a complete reproduction The issue lacks information for further investigation

Comments

@UnPolinomio
Copy link

What version of Next.js are you using?

11.0.0

What version of Node.js are you using?

14.17.0

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying your application?

Not deploying but development environment.

Describe the Bug

After using yarn create next-app --typescript, when I run yarn run dev, I get a warning.

warn - Minimum recommended TypeScript version is v4.3.2, older versions can potentially be incompatible with Next.js. Detected: 4.0.8

I thinks this bug was introduced with #25867, I'm not sure though.

Expected Behavior

I would expect not to get the warning.

To Reproduce

  • Create an app using yarn create next-app --typescript
  • yarn run dev
@UnPolinomio UnPolinomio added the bug Issue was opened via the bug report template. label Jun 16, 2021
@irene459

This comment has been minimized.

@timneutkens
Copy link
Member

https://www.npmjs.com/package/typescript

Latest version of the typescript package is 4.3.3, can you provide a full reproduction, as the steps provided are running fine.

@timneutkens timneutkens added please add a complete reproduction The issue lacks information for further investigation and removed bug Issue was opened via the bug report template. labels Jun 17, 2021
@advaiyalad
Copy link

advaiyalad commented Jun 17, 2021

@UnPolinomio Ran the exact steps that you put in the "To Reproduce" section, but unable to get any warnings whatsoever (well, apart from the webpack 5 thing). Are you changing the typescript version in package.json? This is the package.json that gets generated when you run yarn create next-app --typescript:

{
  "name": "my-project",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "next": "11.0.0",
    "react": "17.0.2",
    "react-dom": "17.0.2"
  },
  "devDependencies": {
    "@types/react": "17.0.11",
    "eslint": "7.28.0",
    "eslint-config-next": "11.0.0",
    "typescript": "4.3.3"
  }
}

@UnPolinomio
Copy link
Author

I think is now solved. Yesterday when I visited https://www.npmjs.com/package/typescript, last Typescript version was 4.0.8 and yarn create next-app --typescript downloaded that version.

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
peterblazejewicz added a commit to peterblazejewicz/next.js that referenced this issue Aug 15, 2022
This updates TS version in `with-typescript` example to remove warning:

``` bash
warn  - Minimum recommended TypeScript version is v4.3.2, older versions can potentially be incompatible with Next.js. Detected: 4.0.8
```

Thanks!

Fixes vercel#26233
peterblazejewicz added a commit to peterblazejewicz/next.js that referenced this issue Aug 15, 2022
This updates TS version in `with-typescript` example to remove warning:

``` bash
warn  - Minimum recommended TypeScript version is v4.3.2, older versions can potentially be incompatible with Next.js. Detected: 4.0.8
```

Thanks!

Fixes vercel#26233
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
please add a complete reproduction The issue lacks information for further investigation
Projects
None yet
Development

No branches or pull requests

5 participants