(博览会)@providesModule声明在两个不同的文件中具有相同的名称

时间:2018-11-15 14:22:45

标签: reactjs react-native expo

尝试运行react native expo项目时遇到错误。

react-native

我们有2个项目(React Native Expo)和(React Native Expo故事书),它们都有{ "name": "ui-components", "version": "0.0.1", "main": "node_modules/expo/AppEntry.js", "private": true, "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "eject": "expo eject", "storybook": "storybook start" }, "dependencies": { "expo": "^31.0.2", "react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz", "react-native-material-textfield": "^0.12.0", "react-native-paper": "^2.2.4", "react-native-progress": "^3.5.0" }, "devDependencies": { "@storybook/addon-actions": "^4.0.4", "@storybook/addon-links": "^4.0.4", "@storybook/addons": "^4.0.4", "@storybook/react-native": "^4.0.4", "babel-core": "^6.26.3", "babel-eslint": "^10.0.1", "babel-preset-expo": "^5.0.0", "babel-runtime": "^6.26.0", "prop-types": "^15.6.2", "react-dom": "16.5.0" } } 模块。

下面是Storybook Expo应用程序 package.json

{
  "name": "my-app",
  "version": "0.0.1",
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "^31.0.2",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
    "react-native-paper": "^2.2.4",
    "ui-components": "../storybook/"
  },
  "devDependencies": {
    "babel-core": "^6.26.3",
    "babel-eslint": "^10.0.1",
    "babel-preset-expo": "^5.0.0",
    "babel-runtime": "^6.26.0",
    "prop-types": "^15.6.2",
    "react-dom": "16.5.0"
  }
}

以下是React Native Expo App package.json

1 * complex.sideEffect(_) >> {}

我已经看到一些与 watchman 相关的帖子,但此处未使用watchman ...所以需要一些替代方法

0 个答案:

没有答案