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

[Client Step 1.11] #92

Open
jacksonbenete opened this issue Feb 6, 2021 · 0 comments
Open

[Client Step 1.11] #92

jacksonbenete opened this issue Feb 6, 2021 · 0 comments

Comments

@jacksonbenete
Copy link

By using yarn add moment, yarn will/might automatically change tsconfig.json to "correct" the item:
=> "jsx": "react"
into
=> "jsx": "react-jsx"
which in turn will cause React error:
error TS6046: Argument for '--jsx' option must be: 'preserve'
that will prevent the app to start and might let beginners confused.

I didn't installed prettier in Section 1.3, maybe it will cause the same problem.

Should be the case to warn/remember the users to change tsconfig.json everytime a yarn add command be performed.
Someone used to development should rapidly catch and correct it, but if the tutorial is also aimed to beginners it would be better to warn about those little things.

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

No branches or pull requests

1 participant