Skip to content

kosl90/fastify-cli-not-crash-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reproduce fastify-cli not crash

reproduce example for issue preParsing is undefined not null;

Test

There are two commands in package.json dev and dev-cli,

dev use manually written code to start the service -- will crash.

dev-cli use fastify start to start the service -- will not crash.

Key points

Here are two key points to not make fastify-cli crash:

  • build schema error
  • use app.ready(if you comment the app.ready statement in src/index.js, fastify-cli will crash).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published