elysia icon indicating copy to clipboard operation
elysia copied to clipboard

No error in the logs for invalid import

Open dector opened this issue 1 year ago • 1 comments

What version of Elysia is running?

1.1.16

What platform is your computer?

Linux 6.10.4-amd64 x86_64 unknown

What steps can reproduce the bug?

  • Add html plugin for JSX ()
  • Do incorrect import import Html from "@elysiajs/html"; (as suggested by VSCode) in index.tsx.
  • bun dev.
  • Open website in browser.

What is the expected behavior?

Request is failed (with status 500) and there are logs in the console.

What do you see instead?

Request is failed (with status 500) and there are NO any logs in the console.

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

yes

dector avatar Sep 25 '24 22:09 dector

As a workaround I can use onError {}. But I kinda expect that in development mode server errors should be printed to the console. Is this by design?

dector avatar Sep 26 '24 20:09 dector

+1

liflovs avatar Nov 17 '24 11:11 liflovs