Response-snapshot: addComponentAsRefTo (...) error

Following this tutorial: https://medium.com/superhighfives/an-almost-static-stack-6df0a2791319

Getting this error after building the app: facebook-response-error :

addComponentAsRefTo (...): Only ReactOwner can have links. Perhaps you added a ref to a component that was not instantiated inside the component render

, or you have multiple copies of React loaded ...

Does anyone know the key?

npm ls react looks like this:

`-- react-snapshot@1.0.4
  `-- react@15.5.4

      

+3


source to share


1 answer


I had the same error resolving it by removing

// = require response-server



from / app / javascripts / server_rendering.js

the cause of this error is usually duplicated react load as you can read in this article

0


source







All Articles