flat-server icon indicating copy to clipboard operation
flat-server copied to clipboard

服务端执行 yarn run start 报错

Open chenyueteng opened this issue 2 years ago • 2 comments

image 服务端执行 yarn run start 报以上的错

chenyueteng avatar May 07 '23 02:05 chenyueteng

node 版本14.17.5

chenyueteng avatar May 07 '23 02:05 chenyueteng

Sorry about the bad DX, the server code depends on a specific version of fastify because @BlackHole1 hacks the typings of that, and newer versions of fastify and TypeScript would fail to run type checking here and there.

Until someone could help us refactoring the typings, you can take either of the following actions to keep going:

  • Use exactly the versions of fastify and TypeScript specified in yarn.lock to run this project.
  • Update webpack.common.js to remove the ForkTsCheckerWebpackPlugin so that typing errors are suppressed.

hyrious avatar May 07 '23 02:05 hyrious