-
Notifications
You must be signed in to change notification settings - Fork 53
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
[Question] Will this work with React? #11
Comments
Hello ! The solution is actually hinted by the backend integration doc from vite, you also have solutions vitejs/vite#341 (comment) here and vitejs/vite#1984 here I edited the vite() function like this :
|
Sorry, I don't use React. Will leave this open in case someone finds the problem. Thanks all |
@DitaXoXo Sorry for late reply. Yeah, the solution was like you said in Vite docs, glad you worked that out. |
Thanks guys. Added this information to the README. Best regards |
this is example for svelte |
I have tested it with semi success. Works only with legacy codebase not with functional components.
Uncaught Error: @vitejs/plugin-react can't detect preamble. Something is wrong. See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201 at Button.jsx:1:1
Have someone had similar problems?
The text was updated successfully, but these errors were encountered: