getcronit / pylon

The next generation of building GraphQL APIs
https://pylon.cronit.io
Apache License 2.0
64 stars 1 forks source link

Warning message is shown when moduleResolution set to Bundler. #26

Closed shoma-mano closed 3 days ago

shoma-mano commented 3 days ago

Describe the bug It seems to work without proplem, but warning message is shown when moduleResolution set to Bundler.

To Reproduce set moduleResolution to Bundler and boot dev server.

tsconfig.json

{
  "extends": "@getcronit/pylon/tsconfig.pylon.json",
  "compilerOptions": {
    "moduleResolution": "Bundler",
    "types": ["bun-types"],
    "paths": {
      "@/*": ["./*"]
    }
  }
}

logs

bun dev
$ pylon dev --client --client-port=3003 -c 'bun run .pylon/index.js'
[Pylon]: dev version 2.0.0                                                                                                              1:38:02
◐ [Pylon]: Building schema                                                                                                              1:38:02
(node:34156) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[
  [
    {
      file: undefined,
      start: undefined,
      length: undefined,
      messageText: "Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.",
      category: 1,
      code: 6046,
      reportsUnnecessary: undefined,
      reportsDeprecated: undefined
    }
  ]
]
✔ [Pylon]: Schema built                                                                                                                1:38:06
◐ [Pylon]: Starting server                                      

Screenshots

image

Desktop

schettn commented 3 days ago

https://github.com/getcronit/pylon/releases/tag/%40getcronit%2Fpylon-builder-v2.0.3