question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React 16 doesn't allow private API access

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
browniefedcommented, Jan 16, 2018

You must have installed an older version. The latest doesn’t reach into the React code base anymore.

0reactions
loganpowellcommented, Jan 18, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found