react-cache alphas don't work with 16.8+ #14780
Yeah I think for now our recommendation is that you can copy paste its source but then you're on your own. The caching strategy is very unclear now and the whole thing will likely change a lot. We don't want any reusable libraries to start depending on it.
We could plausibly add a big red warning on its import and then publish another alpha. If someone sends a PR seems ok to do it.
The current solution is indeed building from source, but if people want to streamline the process, you can try adding this to your package.json:
credit goes to this stackoverflow answer
It would be awesome if react took advantage of the npm's "prepare" script and npm allowed installing from directories in git repos, but thats not likely going to change any time soon. For now, this solution is fine