update diagnostic
v1.28

  - use require instead of use in diagnostic