小编Dmi*_*kov的帖子

@ types / styled-components重复的标识符FormData

如果我在项目中添加@ types / styled-components,则在生成输出中会出现很多错误:

ERROR in /Users/me/projects/react/node_modules/@types/react-native/globals.d.ts(36,15):
TS2300: Duplicate identifier 'FormData'.
  ERROR in /Users/me/projects/react/node_modules/@types/react-native/globals.d.ts(81,5):
TS2717: Subsequent property declarations must have the same type.  Property 'body' must be of type 'BodyInit', but here has type 'string | ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | Blob | FormData'.
  ERROR in /Users/me/projects/react/node_modules/@types/react-native/globals.d.ts(107,14):
TS2300: Duplicate identifier 'RequestInfo'.
  ERROR in /Users/me/projects/react/node_modules/@types/react-native/globals.d.ts(126,13):
TS2403: Subsequent variable declarations must have the same type. …
Run Code Online (Sandbox Code Playgroud)

javascript typescript reactjs styled-components

15
推荐指数
3
解决办法
2945
查看次数

错误:使用 pkg-config 找不到 SvtAv1Enc

我正在尝试使用 SVT-AV1 编解码器编译 FFmpeg,请按照此处的说明进行操作:https ://github.com/OpenVisualCloud/SVT-AV1/tree/master/ffmpeg_plugin

一切都很顺利,但是当我尝试跑步时

./configure --enable-libsvtav1
Run Code Online (Sandbox Code Playgroud)

我正进入(状态

ERROR: SvtAv1Enc not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Run Code Online (Sandbox Code Playgroud)

ffbuild/config.log 的内容: https: //pastebin.com/euPriFAp

github 上有一个确切的问题: https: //github.com/OpenVisualCloud/SVT-AV1/issues/35,但已解决并关闭。

我已经在 Mac 和 Ubuntu 18.04 …

linux plugins ffmpeg build

7
推荐指数
1
解决办法
6533
查看次数

webpack构建时@ babel / typescript不会引发错误

我正在尝试使用Babel 7的@ babel / typescript预设来转换TypeScript。它工作正常,但是由于某种原因,在构建控制台中没有来自TS的任何错误消息。

我有下一个配置:

webpack.config.js

const outputPath = require('path').resolve(__dirname, './production');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {

  entry: [
    './src/index.tsx'
  ],

  output: {
    path: outputPath,
    filename: '[name].[chunkhash].js',
  },

  module: {
    rules: [
      {
        test: /\.(ts|tsx)$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
      },
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'source-map-loader',
        enforce: "pre"
      },
      {
        test: /\.(jpe?g|png|gif|svg)$/i,
        loader: 'file-loader'
      },
      {
        test: /\.(eot|svg|ttf|woff|woff2)$/,
        loader: 'file-loader'
      }
    ]
  },

  plugins: [
    new HtmlWebpackPlugin({template: './src/index.html'})
  ],

  resolve: {
    extensions: ['.js', '.jsx', '.ts', '.tsx']
  }, …
Run Code Online (Sandbox Code Playgroud)

javascript compiler-errors babel typescript webpack

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

YouTrack 通知不起作用

我们有独立的 YT 安装,一个项目和两个用户。第一个用户收到他电子邮件的所有通知,但我什么也没收到。当我点击Send test message我的个人资料设置页面时,我会收到电子邮件。在过滤器和通知选项卡上,我选中了所有复选框。

任何想法如何解决这一问题?

youtrack

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