name: 🐛 Bug Report
description: Report an issue that should be fixed
labels: [bug]
body:
    - type: markdown
      attributes:
          value: |
              Thank you for submitting a bug report. It helps make Elysia.JS better.

              If you need help or support using Elysia.JS, and are not reporting a bug, please
              head over to Q&A discussions [Discussions](https://github.com/elysiajs/elysia/discussions/categories/q-a), where you can ask questions in the Q&A forum.

              Make sure you are running the version of Elysia.JS and Bun.Sh
              The bug you are experiencing may already have been fixed.

              Please try to include as much information as possible.

    - type: input
      attributes:
          label: What version of Elysia is running?
          description: Copy the row with `elysia` dependency from output `bun pm ls` command
    - type: input
      attributes:
          label: What platform is your computer?
          description: |
              For MacOS and Linux: copy the output of `uname -mprs`
              For Windows: copy the output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in the PowerShell console
    - type: textarea
      attributes:
          label: What steps can reproduce the bug?
          description: Explain the bug and provide a code snippet that can reproduce it.
      validations:
          required: true
    - type: textarea
      attributes:
          label: What is the expected behavior?
          description: If possible, please provide text instead of a screenshot.
    - type: textarea
      attributes:
          label: What do you see instead?
          description: If possible, please provide text instead of a screenshot.
    - type: textarea
      attributes:
          label: Additional information
          description: Is there anything else you think we should know?
    - type: input
      attributes:
        label: Have you try removing the `node_modules` and `bun.lockb` and try again yet?
        description: rm -rf node_modules && bun.lockb
