You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import thunkMiddleware from 'redux-thunk'
import createLogger from 'redux-logger'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import { Map } from './components/Map.jsx'
import { rootReducer } from './reducers.js'
import { fetchObjects } from './map/actions'
import RaisedButton from 'material-ui/lib/raised-button';
Meteor.startup(function () {
if (Meteor.isClient) {
const loggerMiddleware = createLogger();
const createStoreWithMiddleware = applyMiddleware(
thunkMiddleware, // lets us dispatch() functions
loggerMiddleware // neat middleware that logs actions
)(createStore);
const store = createStoreWithMiddleware(rootReducer);
store.dispatch(fetchObjects());
}
ReactDOM.render(
<RaisedButton label="Default" />,
document.getElementById('render-target')
);
});
And here is the error:
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.
The text was updated successfully, but these errors were encountered:
EDIT: no way, even with material-ui@v0.14.1 which requires react@0.14.0 the error persists.
mui/material-ui#2818 (comment) says that it could be due to an older react version of the react packages for meteor. Indeed Material UI need react@0.14.16 and React Meteor package uses react@0.14.3_1.
Is it possible to upgrade the react version of meteor?
NodeJS: v4.2.3
Npm: 2.14.14
Here is my package.json
Here is a test file:
And here is the error:
The text was updated successfully, but these errors were encountered: