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

When you use this plugin you must install typescript? #11724

Open
darewreck54 opened this issue Dec 7, 2021 · 2 comments
Open

When you use this plugin you must install typescript? #11724

darewreck54 opened this issue Dec 7, 2021 · 2 comments

Comments

@darewreck54
Copy link

I posted the question in the discussion. It's not clear if this is a bug or if I'm just doing it incorrect.
#11704

Describe the bug

I clone the create-react-app repo and ran the following commends:

npx create-react-app tester4 --scripts-version file:./create-react-app/packages/react-scripts --template file:./create-react-app/packages/cra-template-typescript

....

cd tester4
yarn start                                                                           
yarn run v1.22.17
$ react-scripts start
**When you use this plugin you must install `typescript`.**
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I would expect it to work similar to when you just call npx create-react-app tester4 --typescript, but it's not.

Questions

  1. isn't npx create-react-app tester4 --typescript the same as npx create-react-app tester4 --scripts-version file:./create-react-app/packages/react-scripts --template file:./create-react-app/packages/cra-template-typescript
  2. When you see the message When you use this plugin you must install typescript`` what are you suppose to do. Do you just install typescript in the custom --script-version. Like in this case, isn't -scripts-version file:./create-react-app/packages/react-scripts the default anyways?

Thanks,
Derek

@quisido
Copy link

quisido commented Dec 9, 2021

The react-dev-utils package is using an outdated version of fork-ts-checker-webpack-plugin. The published version uses 4.x, while the unpublished code in this repo uses 6.x. The 6.x version needs to be published. I don't know what the blocker is for publishing it.

@darewreck54
Copy link
Author

I think the new release 5.0 addressed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants