oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.79k stars 2.73k forks source link

SyntaxError: Invalid character: '\0' #8763

Open VinkyV opened 8 months ago

VinkyV commented 8 months ago

What version of Bun is running?

1.0.26+c75e768a6

What platform is your computer?

Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

bun create elysia app
cd app
bun run src/index.ts

What is the expected behavior?

running elysia server

What do you see instead?

lucky@DESKTOP-12ME3RU:~/app$ bun run src/index.ts
260 |                                   status: 200
261 |                           }
262 |                           ${Q?",$$requestId: +id":""}
263 |                           ${Z}
264 |                   }
265 |                   }
      ^
SyntaxError: Invalid character: '\0'
      at <parse> (/home/lucky/app/node_modules/elysia/dist/bun/index.js:265:1)

Additional information

No response

paperdave commented 8 months ago

cannot reproduce this on any platform

github-actions[bot] commented 2 months ago

This issue is stale and may be closed due to inactivity. If you're still running into this, please leave a comment.