yuanyan / react-native-web-example

React Native Web Example
40 stars 24 forks source link

react-web start ERROR #11

Open JunLeeTerry opened 7 years ago

JunLeeTerry commented 7 years ago

Download demo , npm install but cannot start project

ERR:

var opts = new _babelCore.OptionManager().init((0, _extend2.default)({ sourceR
oot: _path2.default.dirname(filename) }, (0, _cloneDeep2.default)(transformOpts)
, { filename: filename }));
             ^

TypeError: _babelCore.OptionManager is not a constructor
    at compile (D:\RN\react-native-web-example-master\node_modules\babel-registe
r\lib\node.js:103:14)
    at loader (D:\RN\react-native-web-example-master\node_modules\babel-register
\lib\node.js:144:14)
    at Object.require.extensions.(anonymous function) [as .js] (D:\RN\react-nati
ve-web-example-master\node_modules\babel-register\lib\node.js:154:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\RN\react-native-web-example-master\node_modules\re
act-web\local-cli\cli.js:17:19)
    at Module._compile (module.js:570:32)

node: v6.10.0 npm: 3.10.10