News for hackers. Stuff that matters.
Re:Create React App 4.0 by whb07 on Friday October 23, 2020 @03:57PM (#24873299)
For the love of all mighty, if you happen to use the TS template DO NOT FOR A SECOND assume you’re using it in strict mode.

For whatever reason CRA has a different hidden env var flag that controls this even though you have a “strict: true” in your tsconfig file.

Re:Create React App 4.0 by andyfleming on Friday October 23, 2020 @06:29PM (#24874998)
This may have to do with Babel compiling typescript. It might run the type-checking separately and compile regardless of if it passes.
Re:Create React App 4.0 by whb07 on Saturday October 24, 2020 @08:41AM (#24878845)
I jumped into a greenfield project that had been already polluted and “using” TS. The build was still running with a 1/0 and other explicitly broken code somehow.