Code Monkey home page Code Monkey logo

marsdb-react-router's People

Contributors

c58 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

marsdb-react-router's Issues

QueryResolverContext.js:121 Uncaught TypeError: Cannot read property 'map' of undefined

Hi!

I'm testing MarsDB in my react app based on TodoMVC example and when I add marsdb-react-router to my routes, I'm getting the error below. Any thoughts what could cause that?

Here is the stack trace:
_ensureQueries @ QueryResolverContext.js:121 QueryResolverContext @ QueryResolverContext.js:100 ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:148 ReactCompositeComponent_mountComponent @ ReactPerf.js:66 ReactReconciler.mountComponent @ ReactReconciler.js:37 ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:225 ReactCompositeComponent_mountComponent @ ReactPerf.js:66 ReactReconciler.mountComponent @ ReactReconciler.js:37 mountComponentIntoNode @ ReactMount.js:266 Mixin.perform @ Transaction.js:136 batchedMountComponentIntoNode @ ReactMount.js:282 Mixin.perform @ Transaction.js:136 ReactDefaultBatchingStrategy.batchedUpdates @ ReactDefaultBatchingStrategy.js:62 batchedUpdates @ ReactUpdates.js:94 ReactMount._renderNewRootComponent @ ReactMount.js:476 ReactMount__renderNewRootComponent @ ReactPerf.js:66 ReactMount._renderSubtreeIntoContainer @ ReactMount.js:550 ReactMount.render @ ReactMount.js:570 React_render @ ReactPerf.js:66 (anonymous function) @ entry.js:32 (anonymous function) @ bundle.js:73 __webpack_require__ @ bundle.js:20 (anonymous function) @ bundle.js:40 (anonymous function) @ bundle.js:43

Here is my Routes.js:

import React from 'react';
import ReactDOM from 'react-dom';
//import Router from 'react-router/lib/Router';
import MarsRouter from 'marsdb-react-router';
import Redirect from 'react-router/lib/Redirect';
import hashHistory from 'react-router/lib/hashHistory';
import Routes from './routes';

ReactDOM.render((
  <MarsRouter history={hashHistory}>
    <Redirect from="/" to="/app" />
    {Routes}
  </MarsRouter>), document.getElementById("mettzer-app"));

This are my dependencies:

"devDependencies": {
    "assets-webpack-plugin": "^3.2.0",
    "babel-loader": "^6.2.3",
    "babel-polyfill": "^6.5.0",
    "babel-preset-es2015": "^6.5.0",
    "babel-preset-react": "^6.5.0",
    "babel-preset-stage-2": "^6.5.0",
    "del": "^2.2.0",
    "gulp": "^3.9.1",
    "gulp-connect": "^2.2.0",
    "gulp-gzip": "^1.2.0",
    "gulp-html-replace": "^1.5.1",
    "gulp-sass": "^2.1.0",
    "gulp-tar": "^1.8.0",
    "gulp-util": "^3.0.6",
    "gulp-watch": "^4.3.1",
    "opn": "^4.0.0",
    "run-sequence": "^1.1.5",
    "webpack-stream": "^3.1.0"
  },
  "dependencies": {
    "browser-info": "^0.3.0",
    "classnames": "^2.2.0",
    "fixed-data-table": "^0.6.0",
    "flux": "^2.0.3",
    "immutable": "^3.7.6",
    "keymirror": "^0.1.1",
    "marsdb": "^0.6.9",
    "marsdb-localforage": "^0.1.0",
    "marsdb-react": "^0.1.4",
    "marsdb-react-router": "^0.2.2",
    "moment": "^2.10.6",
    "object-assign": "^4.0.1",
    "q": "^1.4.1",
    "react": "^0.14.8",
    "react-dom": "^0.14.8",
    "react-file-input": "^0.2.5",
    "react-notification": "^4.2.0",
    "react-progress": "0.0.12",
    "react-radio-group": "^2.2.0",
    "react-router": "^2.0.0",
    "react-select": "^0.9.1",
    "react-tabs": "^0.5.1",
    "react-textarea-autosize": "^3.3.1",
    "react-tokeninput": "^1.1.0",
    "react-tooltip": "^1.1.2",
    "react-widgets": "^3.1.7",
    "string": "^3.3.1",
    "superagent": "^1.7.2",
    "superagent-as-promised": "^3.2.0",
    "superagent-intercept": "^0.1.1",
    "undo.js": "^0.2.0",
    "uuid": "^2.0.1"
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.