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

Not working with React 16.1.1 #240

Open
alienriquebm opened this issue Nov 20, 2017 · 1 comment
Open

Not working with React 16.1.1 #240

alienriquebm opened this issue Nov 20, 2017 · 1 comment

Comments

@alienriquebm
Copy link

Right now i receive this error:

./node_modules/formsy-material-ui/lib/FormsyText.js
Module not found: Can't resolve 'create-react-class' in '/Users/alienriquebm/NodeApps/digheon/tuhogarrenace/tuhogarrenace.client/node_modules/formsy-material-ui/lib'

image

This are my dependencies:

{
  "name": "tuhogarrenace.client",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "axios": "^0.17.1",
    "dexie": "^2.0.1",
    "formsy-material-ui": "^0.6.0",
    "formsy-react": "^0.19.5",
    "material-ui": "^0.19.1",
    "moment": "^2.19.2",
    "react": "^16.1.1",
    "react-alert": "^2.3.0",
    "react-dom": "^16.1.1",
    "react-responsive": "^4.0.0",
    "react-scripts": "1.0.17",
    "reflexbox": "^3.0.0-0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

Can you help me please? Thanks a lot for your hard work.

@cauld
Copy link

cauld commented Nov 29, 2017

I ran into this as well. create-react-class is listed as a peerDependency in formsy-material-ui's package.json. As of npm 3 peer dependencies are not installed by default. So adding this to your project's package.json file should resolve the issue.

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