我有错误:Subsequent variable declarations must have the same type
发生这种情况是因为我需要两个依赖项;声明相同的类型。
开玩笑:/node_modules/@types/jest/index.d.ts
=>declare var test: jest.
测试咖啡馆 node_modules/testcafe//ts-defs/index.d.ts
=>declare var test: TestFn;
我的项目是一个使用 webpack、babel 和 Typescript 的 react/redux 项目。
当我通过npm start
它运行我的开发服务器时发生错误webpack-dev-server
。它在我运行时也会产生问题,jest
因为它使用了 testcafe 的声明Test
类型版本。
如何解决?