FountainJS / generator-fountain-react

Yeoman 'fountain' generator to start a webapp with React
http://fountainjs.io
MIT License
36 stars 11 forks source link

Error: Can't resolve 'react/lib/ReactTestUtils' #65

Closed victorkt closed 7 years ago

victorkt commented 7 years ago

Description

An error message is displayed when trying to run the tests. This problem occurs because ReactTestUtils is a part of ReactDOM and not React, according to this issue.

Error Message & Stack Trace

Module not found: Error: Can't resolve 'react/lib/ReactTestUtils' in '/Users/kohl/Documents/my-website/src/app'
 @ ./src/app/hello.spec.js 140:22-57
 @ ./src/app \.(js|ts|tsx)$
 @ ./src/index.spec.js

Config

{
  "generator-fountain-react": {
    "version": "1.0.0-rc1",
    "props": {
      "framework": "react",
      "modules": "webpack",
      "js": "babel",
      "ci": [
        "travis"
      ],
      "css": "scss",
      "resolved": "/Users/kohl/.nvm/versions/node/v6.9.1/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-react/generators/app/index.js",
      "namespace": "fountain-react",
      "argv": {
        "remain": [],
        "cooked": [],
        "original": []
      },
      "sample": "hello",
      "router": "router"
    }
  }
}

Relevant Links

Environment

Node.js v6.9.1
darwin 16.1.0
1.8.5
3.10.8