gaurishhs / elysia-ip

Get Client IP Address in Elysia
MIT License
53 stars 10 forks source link

Bun can't build #29

Closed Torwent closed 4 months ago

Torwent commented 4 months ago

Maybe it's me who's doing something wrong but I can't use Bun build command with this package installed.

Running bun build src/index.ts --outdir build Gives me the following error:

1 | import { debuglog } from "node:util";
             ^
error: No matching export in "node:util" for import "debuglog"
    at PATH_TO_PROJECT\node_modules\elysia-ip\dist\services\debug.js:1:10
error: script "build" exited with code 1
Torwent commented 4 months ago

Also, not entirely sure if this is a Bun issue and not an issue of this project! Sorry if that's the case!

gaurishhs commented 4 months ago

What is your Bun version?

On Thu, 27 Jun, 2024, 15:58 Torwent, @.***> wrote:

Also, not entirely sure if this is a Bun issue and not an issue of this project! Sorry if that's the case!

— Reply to this email directly, view it on GitHub https://github.com/gaurishhs/elysia-ip/issues/29#issuecomment-2194334347, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZRZBZDZROETAWS26RWPUTZJPSK7AVCNFSM6AAAAABJ7UA2LGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUGMZTIMZUG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Torwent commented 4 months ago

version 1.1.13

gaurishhs commented 4 months ago

I'm sorry but im unable to reproduce this.

Torwent commented 4 months ago

I'm sorry but im unable to reproduce this.

Weird! It happens both on my windows machine (windows bun) and on my server running coolify. I'll investigate further to see if the issue is me and close this for now!