flow-coverage-report icon indicating copy to clipboard operation
flow-coverage-report copied to clipboard

Error: Cannot find module 'react/lib/ReactDOMServer' | (devDependency installation)

Open joncursi opened this issue 8 years ago • 2 comments

When I install this module locally to the project as a devDependency, running flow-coverage-report with my custom flags yields:

Error: Cannot find module 'react/lib/ReactDOMServer'

However, if I install this module globally and run the same command, it works. Ideas? My app uses...

    "react": "^15.4.2",

joncursi avatar Feb 16 '17 17:02 joncursi

@joncursi It looks like there was a problem with react v15.4.1, https://github.com/facebook/react/issues/8588, but it was resolved with 15.4.2.

Try updating flow-coverage-report to the master branch. It has had it's dependencies updated!

ryan953 avatar Apr 23 '17 17:04 ryan953

@ryan953 When you install from github:rpl/flow-coverage-report#master, there is another issue, because the npm run build is called only in prepublish, sot the dist directory doesn't exist, I think that it should be called in postinstall i will open PR and we will see

rusel1989 avatar Apr 24 '17 08:04 rusel1989