Heroku部署错误-后续属性声明必须具有相同的类型

时间:2019-10-21 00:18:12

标签: node.js heroku passport.js yarn

我已分叉了一个游戏的副本,并添加了一个heroku部署按钮,尝试进行部署时出现问题,构建失败。我不了解该错误,希望有人可以帮助我修复该错误。

这是构建日志中失败的部分。

[4/4] Building fresh packages...
   $ tsc && cd client/ && yarn && yarn build
   node_modules/@types/passport-strategy/node_modules/@types/passport/index.d.ts(21,13): error TS2717: Subsequent property declarations must have the same type.  Property 'authInfo' must be of type 'any', but here has type 'AuthInfo | undefined'.
   node_modules/@types/passport-strategy/node_modules/@types/passport/index.d.ts(22,13): error TS2717: Subsequent property declarations must have the same type.  Property 'user' must be of type 'any', but here has type 'User | undefined'.
error Command failed with exit code 2.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
-----> Build failed

如果您想查看源代码,这是指向我的分叉存储库的链接:https://github.com/CookieCoder15/skribblish

0 个答案:

没有答案