React 16 doesn't allow private API access
See original GitHub issueI’m sorry if I’m missing something, but when I update to React 16+ I get an error:
./node_modules/animated/lib/targets/react-dom.js
Module not found: Can't resolve 'react-dom/lib/CSSPropertyOperations'
After some Google’ing, I found a tweet from Dan Abramov saying:
Just a reminder: importing from react/lib/* or react-dom/lib/* was never supported, and will break more in the future. Don’t do this.
Is there a better way to use the animated.js
library than what I’m doing here:
https://github.com/loganpowell/router-transition-animation/blob/master/src/AnimatedRoutes.js#L4
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
'Access-Control-Allow-Origin' issue when API call made from ...
This is a common issue occurs when you try to call an endpoint via your react app because react app is running ...
Read more >Hiding Secret Keys in Create-React-App - Pluralsight
The create-react-app documentation states that clearly. WARNING: Do not store any secrets (such as private API keys) in your React app!
Read more >The Complete Guide to React User Authentication with Auth0
The focus of this tutorial is to help developers learn how to secure a React application by implementing user authentication.
Read more >Concurrent Mode API Reference (Experimental) - React
This page is an API reference for the React Concurrent Mode. If you're looking for a guided introduction instead, check out Concurrent UI...
Read more >ReactDOM – React
ReactDOM. The react-dom package provides DOM-specific methods that can be used at the top level of your app and as an escape hatch...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You must have installed an older version. The latest doesn’t reach into the React code base anymore.
Yup! I had a duplication of React when I upgraded and found a related issue:
https://github.com/JedWatson/react-select/issues/606#issuecomment-216768095
Reinstalled everything and now works perfectly!