Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务端执行 yarn run start 报错 #727

Open
chenyueteng opened this issue May 7, 2023 · 2 comments
Open

服务端执行 yarn run start 报错 #727

chenyueteng opened this issue May 7, 2023 · 2 comments

Comments

@chenyueteng
Copy link

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

@chenyueteng
Copy link
Author

node 版本14.17.5

@hyrious hyrious transferred this issue from netless-io/flat May 7, 2023
@hyrious
Copy link
Member

hyrious commented May 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants