fex-team / fis3-hook-node_modules

fis3 node_modules 支持
81 stars 12 forks source link

node_modules不能加载包之间的依赖 #48

Open zdxxxxxx opened 8 years ago

zdxxxxxx commented 8 years ago

fis3 release 报warn Can't resolve xhr2 in file [/node_modules/reqwest/reqwest.js], did you miss npm install xhr2?

$ ls antd/ less/ babel-plugin-import/ material-ui/ babel-preset-es2015/ process/ babel-preset-react/ react/ babel-preset-stage-3/ react-dom/ classnames/ react-redux/ fis3-hook-commonjs/ react-router/ fis3-hook-node_modules/ react-tap-event-plugin/ fis3-packager-deps-pack/ redux/ fis3-parser-less-2.x/ redux-thunk/ fis3-postpackager-loader/ reqwest/ fis3-preprocessor-js-require-css/ xhr2/ fis-parser-babel-6.x/

xhr2这个包是有的

reqwest.js的一段引用xhr2的源码

try { XHR2 = require('xhr2') } catch (ex) { throw new Error('Peer dependency xhr2 required! Please npm install xhr2') }