Urigo / WhatsApp-Clone-Tutorial

https://www.tortilla.academy/Urigo/WhatsApp-Clone-Tutorial
https://tortilla.academy
565 stars 144 forks source link

[Client Step 1.11] #92

Open jacksonbenete opened 3 years ago

jacksonbenete commented 3 years ago

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.