1,682 karma · joined September 14, 2014
But why does this happen? The very first time for me a package manage installs two major versions for a package …
Thanks A TON!
The @types definition packages for react-router, redux-thunk, etc. give me "error TS2605: JSX element type X is not a constructor function for JSX element". Most popular answer on GitHub is to rm -rf node_modules and rebuild, however that does nothing for me. I tried upgrading some @types selectively and triple-double checked that the resolved versions make sense, but nothing so far.
A codebase that used to build cleanly now throws ~30 errors on build, without any changes to it. Insane. Always pin your exact versions in JS land …
If you're on OS X then `brew bundle dump` and `brew bundle install` will also help[1]
[0] circleci config: https://gist.githubusercontent.com/bauerd/27b24d1a3f881fe508...
JSX is just syntactic sugar, it's not a templating language. You could write yourself a JSX syntax extension for Dart, it'd be the same thing really.
Edit: More succinctly, JSX desugars to method calls
Color me confused.
This still applies then