-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No ES Module export on controller #226
Comments
Thanks for reporting this issue. I was able to reproduce this and already found the issue. A fix will be included the next alpha release. |
@jonasfunk This should be fixed in the latest 2.0.0-alpha.10. |
Updated to the latest version.
|
@jonasfunk I'm currently working on a fix for this and i'm testing some examples. Do you have all your exports as ES module exports? Or can it happen that you have a CJS So it can either be have everything as ES exports, or everything as CJS exports. This could be configurable per project. |
@janvennemann I've attached the project I'm testing with. |
Yeah that comes from the recent upgrade to Vite 5 but it doens't impact anything build related. We need to change the way we load Vite in Liveview for it to go away, which will likely happen in one of the next updates ;) |
@janvennemann Noticed that you uploaded a new release. Is esm support fixed with that? 🙂 |
Unfortunately no, not yet. That release contained some fixes for stuff that i broke while trying to make ES Module exports work. I have an idea how to solve it, but i need a way to control the desired export Synatx per project i think. I'll keep you updated until i have this sorted out. |
Any progress on this issue (not pushy, just curious 🙂) ? |
@janvennemann Can you please schedule this for May? Thank you! |
Is this one in progress 🙂? |
I'm trying to export a function from a
controller.ts
, but using ES Module style doesn't work:Works with lib files.
The text was updated successfully, but these errors were encountered: