Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'routerContext' of undefined #77

Closed
Sineliad opened this issue Oct 25, 2016 · 2 comments
Closed

Comments

@Sineliad
Copy link

Hi :) ,

I got that error when I installed react-formio:
"Uncaught TypeError: Cannot read property 'routerContext' of undefined"
The error is in webpack:///./~/redux-view/lib/ReduxView.js

My package.json dependencies are:
"dependencies": {
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-formio": "^0.10.11",
"react-redux": "^4.4.5",
"react-router": "^2.8.1",
"react-router-redux": "^4.0.6",
"redux": "^3.6.0"
}

And node version is v6.4.0

Thanks

@randallknutson
Copy link
Contributor

This was an old version of redux-view that we were using. I just released v0.11.0 to fix this. Please try it out.

@Sineliad
Copy link
Author

Thanks @randallknutson - but still having the same issue

this is a new react-create-app folder with only react-formio .

import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import {Formio} from 'react-formio';

class App extends Component {
  render() {
    return (
      <div className="App">
        <div className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h2>TESTING FORMIO</h2>
        </div>
        <p className="App-intro">
            <Formio src="https://example.form.io/example" />
        </p>
      </div>
    );
  }
}

export default App;

And this is the package.json

{
  "name": "formio",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "react-scripts": "0.7.0"
  },
  "dependencies": {
    "react": "^15.3.2",
    "react-dom": "^15.3.2",
    "react-formio": "^0.11.0",
    "react-redux": "^4.4.5",
    "react-router": "^2.8.1",
    "react-router-redux": "^4.0.6",
    "redux": "^3.6.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants