-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Difference between dev and build #11
Comments
Thanks for the repro, it was really helpful to understand how you would like to use Deepkit with the framework. Deepkit worked for me in my own repro without any issue and then checked your repro where you provided the There was a missing Vite configuration flag in build that caused the Please update to the latest version, it should work now! You can also remove |
Confirmed. Working now :) |
This issue has been locked since it has been closed for more than 30 days. If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest version of @lazarv/react-server. If you have any other comments you should create a new discussion. |
Hello,
Thanks for your previous help. Continuing on my exploration:
I'm trying to use Deepkit runtime types (https://deepkit.io/documentation/runtime-types) with react-server.
In a gist, deepkit will transform the original source code to add type information so reflection and other features will be available at runtime.
// index.tsx
In dev mode, everything works. The following code (according to vite inspect plugin) gets transpiled (via a deepkit vite plugin) to
In build + start mode, code breaks and errors. The following code is built
./index.mjs
For instance the following line has been removed by something in the build pipeline
Any suggestions on how to troubleshoot the issue?
The text was updated successfully, but these errors were encountered: