Closed bartvde closed 8 years ago
I'm failing to understand when using this, a directory named sdk is copied in the app folder and the app behaves differently
ah that dir contains the i18n messages
the invalid ref seems to point to toggle-btn
the same React error occurs if we don't explicitly depend on react in the app's package.json
Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
maybe it's similar to this: https://github.com/npm/npm/issues/5875
"Helpers use Peer Dependencies (in my case because some helpers are also required via browserify, where it's important not to duplicate dependencies)"
hmm but dedupe does not work for links
okay figured this out and added it to the README
last glitch is that the react-intl babel plugin creates an sdk directory outside of the messagesDir setting
Barts-MacBook-Air:tabbed bartvandeneijnden$ ls sdk/js/components/
AddLayer.json FeatureTable.json GeocodingResults.json HomeButton.json LayerListItem.json QGISLegend.json QueryBuilder.json
Chart.json Geocoding.json Geolocation.json ImageExport.json Measure.json QGISPrint.json Select.son
Filed as: https://github.com/yahoo/babel-plugin-react-intl/issues/23
Just going to resolve it with a .gitignore until it's fixed
https://docs.npmjs.com/cli/link