【问题标题】:react-native-implementation.js module does not exist in the module map模块映射中不存在 react-native-implementation.js 模块
【发布时间】:2017-08-19 04:42:54
【问题描述】:

我已经安装了 react native 项目并在我的项目中安装了“react-native-firebase”。安装和设置项目后。它显示 react-native-implementation.js 模块不存在。

我已经按照他们网站上的说明进行了搜索,但仍然没有运气。

This Error Image

我的 package.json

{
	"name": "firebaseApp",
	"version": "0.0.1",
	"private": true,
	"scripts": {
		"start": "node node_modules/react-native/local-cli/cli.js start",
		"test": "jest"
	},
	"dependencies": {
		"react": "16.0.0-alpha.12",
		"react-native": "0.47.1",
		"react-native-firebase": "^2.1.2"
	},
	"devDependencies": {
		"babel-jest": "20.0.3",
		"babel-preset-react-native": "2.1.0",
		"jest": "20.0.4",
		"react-test-renderer": "16.0.0-alpha.12"
	},
	"jest": {
		"preset": "react-native"
	}
}

我的播客文件

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'firebaseApp' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for firebaseApp
  pod 'Firebase/Core'
  pod 'RNFirebase', :path => '../node_modules/react-native-firebase'

  # pod 'Firebase/AdMob'
  # pod 'Firebase/Analytics'
  # pod 'Firebase/Auth'
  # pod 'Firebase/Crash'
  # pod 'Firebase/Database'
  # pod 'Firebase/DynamicLinks'
  pod 'Firebase/Messaging'
  # pod 'Firebase/RemoteConfig'
  # pod 'Firebase/Storage'

  pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'BatchedBridge', # Required For React Native 0.45.0+
    'Core',
    'ART'
    # Add any other subspecs you want to use in your project
  ]

  target 'firebaseApp-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'firebaseAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

# target 'firebaseApp-tvOS' do
#   # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
#   # use_frameworks!
#
#   # Pods for firebaseApp-tvOS
#
#   target 'firebaseApp-tvOSTests' do
#     inherit! :search_paths
#     # Pods for testing
#   end
#
# end

谁能帮帮我?

【问题讨论】:

  • 请从你的项目 node_modules/react-native/Libraries/ART 检查这个目录并检查 ReactNativeART.js 是否可用,如果文件不存在,尝试删除你的 node_modules 并重新运行 npm install / yarn

标签: reactjs react-native native react-native-ios


【解决方案1】:
  1. 关闭终端
  2. 重新运行 npm install
  3. 再次启动打包器:react-native run android/ios。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-16
    • 2018-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-19
    • 2020-01-26
    相关资源
    最近更新 更多