当我尝试在 Xcode 中构建我的 React-Native 项目时,我从 RCT-Folly 收到此错误:
{path}/App/ios/Pods/RCT-Folly/folly/container/detail/F14Table.cpp:41:10:当前目标不支持线程本地存储
{path}/App/ios/Pods/RCT-Folly/folly/container/detail/F14Table.cpp:56:10:当前目标不支持线程本地存储
我不太确定发生了什么,所以我不确定我需要提供什么信息,但这是我的 Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
target 'Aware' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'Firebase/AnalyticsWithoutAdIdSupport'
# pod 'RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec'
# pod 'React-callinvoker"', :podspec => '../node_modules/react-native/ReactCommon/callinvoker.podspec'
target 'AwareTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# …Run Code Online (Sandbox Code Playgroud) 我无法让我的数据库和服务器相互连接。服务器是express的,数据库是用postgress的docker镜像制作的。
我试过
错误
[2021-11-01T00:48:05.774Z] INFO: Express server started on port: 3000
DriverPackageNotInstalledError: Postgres package has not been found installed. Try to install it: npm install pg --save
at DriverPackageNotInstalledError.TypeORMError [as constructor] (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/error/TypeORMError.ts:7:9)
at new DriverPackageNotInstalledError (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/error/DriverPackageNotInstalledError.ts:8:9)
at PostgresDriver.loadDependencies (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/driver/postgres/PostgresDriver.ts:1118:19)
at new PostgresDriver (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/driver/postgres/PostgresDriver.ts:284:14)
at DriverFactory.create (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/driver/DriverFactory.ts:36:24)
at new Connection (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/connection/Connection.ts:122:43)
at ConnectionManager.create (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/connection/ConnectionManager.ts:61:28)
at /Users/alexskotner/Documents/GitHub/Aware/BackEnd/src/globals.ts:77:35
at step (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/node_modules/typeorm/node_modules/tslib/tslib.js:143:27)
at Object.next (/Users/alexskotner/Documents/GitHub/Aware/BackEnd/node_modules/typeorm/node_modules/tslib/tslib.js:124:57)
Run Code Online (Sandbox Code Playgroud)
包.json
"pg": "^8.7.1"
Run Code Online (Sandbox Code Playgroud)
类 类 DatabaseAPI {
private opt: ConnectionOptions = …Run Code Online (Sandbox Code Playgroud) postgresql express typeorm typeorm-datamapper node.js-typeorm