小编Fai*_*zer的帖子

使用“ /usr/lib/libcrypto.dylib”在MacOS 10.15 Beta(19A582a)上使Python崩溃

我使用新的macOS Catalina运行了Django项目,并且运行良好。
我安装了oh_my_zsh,然后尝试运行它因以下错误而崩溃的同一项目。我卸载了oh_my_zsh并再次尝试,但没有成功。

Path:                  /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.7.4 (3.7.4)
Code Type:             X86-64 (Native)
Parent Process:        Python [7526]
Responsible:           Terminal [7510]
User ID:               501

Date/Time:             2019-10-07 20:59:20.675 +0530
OS Version:            Mac OS X 10.15 (19A582a)
Report Version:        12
Anonymous UUID:        CB7F20F6-96C0-4F63-9EC5-AFF3E0989687


Time Awake Since Boot: 3000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not …
Run Code Online (Sandbox Code Playgroud)

python libcrypto oh-my-zsh macos-catalina

25
推荐指数
6
解决办法
4531
查看次数

React Native iOS 构建失败,“多个命令产生”错误

我们正在开发一个 React Native 项目。我的一名团队成员在 Linux 和链接的 android 上添加了一些本机模块。到那时,我正在尝试链接 iOS 中的内容,但构建总是因这种错误跟踪而失败。Android 项目正在正常构建。

我删除xyz.xcworkspacePodfile.lock再尝试pod install
另外,我想删除我的node_modules,然后yarn install后面yarn link

react-native-cli: 2.0.1  
react-native: 0.61.4  
yarn 1.19.1
Pod 1.8.4
XCode Version 11.2.1 (11B500)
macOS Catalina 10.15.1 (19B88)
Run Code Online (Sandbox Code Playgroud)

xyz 警告

duplicate output file '/Users/user/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Products/Debug-iphonesimulator/xyz.app/AntDesign.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/faisal/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Intermediates.noindex/xyz.build/Debug-iphonesimulator/xyz.build/Script-47F818C57EEC47EA3303EA1B.sh
Run Code Online (Sandbox Code Playgroud)

xyz 工作区错误

Multiple commands produce '/Users/user/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Products/Debug-iphonesimulator/xyz.app/Zocial.ttf':
1) Target 'xyz' (project 'xyz') has copy command from '/Users/user/Desktop/xyz/native/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/user/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Products/Debug-iphonesimulator/xyz.app/Zocial.ttf'
2) That command depends …
Run Code Online (Sandbox Code Playgroud)

xcode android ios react-native react-native-ios

11
推荐指数
4
解决办法
7771
查看次数

django-storges 支持 CloudFront 签名 URL

我想使用CloudFront 的签名 URL而不是普通的未签名 URL。

django-storages提供了选项,AWS_S3_CUSTOM_DOMAIN但随后它会从 CloudFront 的子域生成未签名的 URL。默认情况下AWS_QUERYSTRING_AUTHTrue,它并生成S3签署的网址。为 CloudFront 生成签名 URL 的任何方式。

这是我希望打开的设置,但由于未签名的 URL,我禁用了它。
我希望为我的发行版打开的设置

django amazon-web-services amazon-cloudfront boto3 python-django-storages

6
推荐指数
1
解决办法
583
查看次数

ESLint:打字稿中未定义“部分”

ESLint 无法识别Partial打字稿,但编译后的模块没有给出任何错误。

const initialState: IAuthState = {
  authenticated: false,
  processing: false,
};

const authReducer = (state: IAuthState = initialState, action: any): IAuthState => {
  const State = (newState: Partial<IAuthState>): IAuthState => ({...state, ...newState});

  switch (action.type) {
    case Actions.SIGN_IN_PROCESS_INITIATED:
      return State({processing: true});

    case Actions.SIGN_IN_PROCESS_FAILED:
      return State({processing: false});

    default:
      return state;
  }
};
Run Code Online (Sandbox Code Playgroud)

我知道这可以被抑制,// eslint-disable-next-line no-undef但我仍然想要一个解释和一个永久的解决方案,这样我就不会得到这个错误Error

pycharm typescript reactjs eslint typescript-eslint

5
推荐指数
1
解决办法
1260
查看次数

纱线工作区中的 React Native 不解析外部包

我正在使用纱线工作区为react和创建 monorepo react-native。我尝试添加redux@app/common并且它可以很好地使用react,但它无法在本机中解析。您可以在https://github.com/Faisal-Manzer/react-and-react-native-monorepo/tree/08-redux上查看源代码。

加载捆绑包时出现以下错误。

error: Error: Unable to resolve module `redux` from `../common/reducers/index.js`: redux could not be found within the project or in these directories:
  ../../node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules: rm -rf node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
    at ModuleResolver.resolveDependency (/Users/user/monorepo/packages/native/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:186:15) …
Run Code Online (Sandbox Code Playgroud)

react-native redux react-redux monorepo yarn-workspaces

4
推荐指数
1
解决办法
3546
查看次数

Appcenter Codepush 集成。无法将任务“bundleDebugJsAndAssets”添加为具有该名称的任务已存在

重现步骤

  1. yarn add react-native-codepush
  2. 将以下内容添加到 android/app/build.gradle
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
Run Code Online (Sandbox Code Playgroud)
  1. 将以下内容添加到 MainApplication.java
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
Run Code Online (Sandbox Code Playgroud)
  1. 将以下内容添加到 strings.xml
    <string name="CodePushDeploymentKey" moduleConfig="true">MYKEY</string>
Run Code Online (Sandbox Code Playgroud)

预期行为

构建应该成功

实际行为

实际发生了什么?

 $ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 998 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...

> Configure project :app
WARNING: BuildType(debug): resValue 'react_native_dev_server_port' value is being replaced: 8081 -> 8081 …
Run Code Online (Sandbox Code Playgroud)

android react-native code-push react-native-code-push visual-studio-app-center

3
推荐指数
2
解决办法
2606
查看次数

preact 的节点 SASS

preact-cli使用默认模板启动了一个项目。我安装了node-sass并且sass-loader. 我更改了其中一个.css文件,.scss然后整个过程中断并给出了此错误。

\n\n
\xe2\x9c\x96 ERROR BabelEsmPlugin: ./routes/profile/style.scss (../node_modules/preact-cli/lib/lib/webpack/proxy-loader.js??ref--6-0!./routes/profile/style.scss)\nModule build failed (from ../node_modules/preact-cli/lib/lib/webpack/proxy-loader.js):\nValidationError: Invalid options object. Sass Loader has been initialised using an options object that does not match the API schema.\n - options has an unknown property 'includePaths'. These properties are valid:\n   object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImporter? }\n    at validate (./routes/profile/index.js\n @ ./routes/profile/index.js\n @ ./components/app.js\n @ ./index.js\n @ ../node_modules/preact-cli/lib/lib/entry.js\n @ multi ../node_modules/webpack-dev-server/client?http://0.0.0.0:8080 ../node_modules/webpack/hot/dev-server.js ../node_modules/preact-cli/lib/lib/entry webpack-dev-server/client webpack/hot/dev-server\n …
Run Code Online (Sandbox Code Playgroud)

sass build-tools node.js webpack preact

2
推荐指数
1
解决办法
2446
查看次数

不同 GraphQL 指令的说明

我想了解这些不同的 GraphQL 指令。我试图在网上查找,但没有得到所有这些指令的工作原理的解释。请解释这些不同类型的指令。

enum __DirectiveLocation {
    QUERY,
    MUTATION,
    SUBSCRIPTION,
    FIELD,
    FRAGMENT_DEFINITION,
    FRAGMENT_SPREAD,
    INLINE_FRAGMENT,
    SCHEMA,
    SCALAR,
    OBJECT,
    FIELD_DEFINITION,
    ARGUMENT_DEFINITION,
    INTERFACE,
    UNION,
    ENUM,
    ENUM_VALUE,
    INPUT_OBJECT,
    INPUT_FIELD_DEFINITION
}
Run Code Online (Sandbox Code Playgroud)

graphql

2
推荐指数
1
解决办法
2488
查看次数