React-Native要求未知模块“./lib/templates/bootstrap”

时间:2016-11-09 19:55:41

标签: npm react-native react-native-android

我刚开始使用React Native。现在我试图让我的客户端运行,但我正面临这个问题

Requiring unknown module "./lib/templates/bootstrap".If you are sure the module is there, try restarting the packager or running "npm install".

的package.json

{
  "name": "client",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "eslint": "^2.10.1",
    "eslint-config-airbnb": "^9.0.1",
    "eslint-plugin-import": "^1.8.0",
    "eslint-plugin-jsx-a11y": "^1.2.0",
    "eslint-plugin-react": "^5.1.1",
    "react": "15.3.2",
    "react-native": "^0.37.0",
    "tcomb-form-native": "^0.5.0",
    "whatwg-fetch": "^1.0.0"
  },
  "jest": {
    "preset": "jest-react-native"
  },
  "devDependencies": {
    "babel-jest": "17.0.0",
    "babel-preset-react-native": "1.9.0",
    "jest": "17.0.0",
    "jest-react-native": "17.0.0",
    "react-test-renderer": "15.3.2"
  }
}

然后我尝试在我的项目中搜索文本/lib/templates/bootstrap,并在index.android.bundle中找到它。

module.exports = LoginView; },“client / views / LoginView.js”); __d(559 / tcomb-form-native / index.js /,function(global,require,module,exports){var _lib = require(560 / ./ lib /); var _lib2 = babelHelpers.interopRequireDefault(_lib); var _en = require(620 / ./lib/i18n/en /); var _en2 = babelHelpers.interopRequireDefault(_en); var _bootstrap = require('./ lib / templates / bootstrap'); var _bootstrap2 = babelHelpers.interopRequireDefault(_bootstrap); var _bootstrap3 = require(621 / ./lib/stylesheets/bootstrap /); var _bootstrap4 = babelHelpers.interopRequireDefault(_bootstrap3);

任何人都可以对此有所了解吗?

0 个答案:

没有答案