Comments (6)
Do you know what i missed? Because i cant get SSR working with the Production build: https://github.com/Trackhe/Vite-React-SSR-HMR
vitejs/vite#8449
from vite-plugin-react.
It seems to work when I add the async
attribute to the preamble script.
from vite-plugin-react.
It seems to work when I add the
async
attribute to the preamble script.
Doesn't seem to be working for me unfortunately. The workaround seems to be loading the script as part of the stream.
from vite-plugin-react.
I hit this same problem and managed to find a work around. I put together a demo below. Perhaps someone with more knowledge on Vite could derives a proper solution to make React SSR more straight forward with Vite.
https://github.com/letientai299/vite-react-ssr-typescript
from vite-plugin-react.
Hi everyone!
I currently investigate open issues to work on a new API for the next major. I understand that there is an issue with renderToPipeableStream
and script loading order, but I don't see any quick reproduction to look at it (only a closed PR on repo)
Can someone provide a small reproduction of the issue? Thanks
from vite-plugin-react.
Hello @jplhomer. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction
will be closed if they have no activity within 3 days.
from vite-plugin-react.
Related Issues (20)
- Update plugin to the new version of Vite 5.x HOT 12
- [bug]:at the time of installing the react vite app,it is not runnit HOT 1
- Babel reformats the input file, causing source references to be wrong HOT 8
- Decorators not working with React class components HOT 2
- Vite react-admin browser dev tools freeze (100% CPU) HOT 2
- React hooks reran on every edit HOT 6
- Error when using block comments in JSX: "repeat count must be non-negative" HOT 2
- Errors in react App.tsx file HOT 2
- Having "react" in optimizeDeps.include creates problems when "react" is externalized HOT 3
- Fast refresh without babel HOT 3
- Getting syntax error on react-redux-snackbar HOT 1
- Remove usage of Vite dedupe option
- Vite on M1 pro - This localhost page can’t be found HOT 2
- [plugin:vite:esbuild] This service is no longer running HOT 3
- HMR improvements for .ts files that include jsx
- Default ESLint setup ignores JSX files if you run `npx eslint .` HOT 3
- Injecting Preamble not possible when using `renderToPipeableStream`. HOT 2
- inject css in shadowDom HOT 1
- Does the React plugin not support React 16? I couldn't find related documentation. HOT 1
- react-beautiful-dnd拖拽插件在vite+react上面不能使用,react的脚手架就没有问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-react.