taofed / react-web

A framework for building web apps with React Native compatible API.
Other
3.36k stars 449 forks source link

Module not found: Error: Cannot resolve module 'react/lib/CSSPropertyOperations' #234

Closed sduqlsc closed 7 years ago

sduqlsc commented 7 years ago

npm 4.3.0 nodejs 4.6.0

package.json:

{
  "name": "React Web",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start"
  },
  "dependencies": {
    "color": "^0.11.3",
    "fetch-jsonp": "^1.0.2",
    "file-loader": "^0.9.0",
    "immutable": "^3.8.1",
    "lodash": "^4.16.2",
    "react": "^15.3.1",
    "react-date-range": "^0.2.4",
    "react-dom": "^15.3.1",
    "react-native": "^0.33.0",
    "react-native-loading-spinner-overlay": "^0.3.0",
    "react-redux": "^4.4.5",
    "react-static-container": "^1.0.1",
    "react-timer-mixin": "^0.13.3",
    "react-web": "^0.4.6",
    "redux": "^3.6.0",
    "redux-persist": "^3.5.0",
    "redux-thunk": "^2.1.0",
    "remote-redux-devtools": "^0.4.8"
  },
  "devDependencies": {
    "babel-loader": "^6.2.5",
    "babel-preset-es2015": "^6.6.0",
    "babel-preset-react": "^6.5.0",
    "babel-preset-react-native": "^1.9.0",
    "babel-preset-stage-1": "^6.16.0",
    "haste-resolver-webpack-plugin": "^0.2.1",
    "json-loader": "^0.5.4",
    "react-hot-loader": "^1.3.0",
    "webpack": "^1.13.2",
    "webpack-dev-server": "^1.16.1",
    "webpack-html-plugin": "^0.1.1"
  }
}

Run npm install, there are some warnings: qq 20170308144620

Run react-web start, errors were reported as below:

qq 20170308144555

cssivision commented 7 years ago

fixed in pr https://github.com/taobaofed/react-web/pull/233