Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Typescript version isssue #7160

Closed
kvedantmahajan opened this issue Jun 4, 2019 · 6 comments · Fixed by #7222
Closed

Typescript version isssue #7160

kvedantmahajan opened this issue Jun 4, 2019 · 6 comments · Fixed by #7222
Assignees

Comments

@kvedantmahajan
Copy link

kvedantmahajan commented Jun 4, 2019

As per docs ran the ... create-react-app --typescript command. I eject it. yarn start it.
The project runs but before server is up after hitting the command yarn startThere is a warning that says "TYPESCRIPT supported versions are >3.2.0 and <3.5.0 ".

I'm afraid I didn't manually upgrade typescript version but did have to run yarn install after ejecting.

The current version of typescript installed is 3.5.1.

Should I consider this warning as serious and degrade my typescript?

EXACT ERROR:


WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.2.1 <3.5.0

YOUR TYPESCRIPT VERSION: 3.5.1

Please only submit bug reports when using the officially supported version.

=============
@wilbo
Copy link

wilbo commented Jun 5, 2019

I get the exact same waning after generating a new app with npx create-react-app my-app --typescript without ejecting. The TypeScript version picked in package.json is 3.5.1.

@wilbo
Copy link

wilbo commented Jun 5, 2019

Found related issue in TypeScript ESLint: typescript-eslint/typescript-eslint#577

I think it will be fixed soon.

@huntwj
Copy link

huntwj commented Jun 14, 2019

This is now fixed in the underlying tools. react-scripts just needs to bump their versions, I think?

@kvedantmahajan
Copy link
Author

kvedantmahajan commented Jun 14, 2019

@huntwj Can someone from create-react-app team be notified to do this?

@ianschmitz
Copy link
Contributor

Thanks for the heads up. I've opened #7222 which should fix this.

@svicalifornia
Copy link

Per the typescript-eslint docs, I tried to suppress this error by falsifying the warnOnUnsupportedTypeScriptVersion parser option in eslintConfig in package.json:

  "eslintConfig": {
    "extends": "react-app",
    "parserOptions": {
      "warnOnUnsupportedTypeScriptVersion": false
    }
  },

But the error message still shows on npm start. Any idea why this didn't work?

@lock lock bot locked and limited conversation to collaborators Jun 22, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants