vitesse-ssr-template | 🏕 Opinionated Vue + Vite Starter Template | Frontend Framework library
kandi X-RAY | vitesse-ssr-template Summary
kandi X-RAY | vitesse-ssr-template Summary
Opinionated Vue + Vite Starter Template with SSR in Node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vitesse-ssr-template
vitesse-ssr-template Key Features
vitesse-ssr-template Examples and Code Snippets
Community Discussions
Trending Discussions on vitesse-ssr-template
QUESTION
I am using Vite JS with Vue 3 for a single page application with server side rendering.
I know that the JS that can only execute on client side must be done on hydration, but is it possible to do so with packages?
My situation is that I want to be able to use Headless UI (for Tailwind UI) and it works fine as long as the app is launched as a Single Page App. When it is launched with SSR, this error occurs:
...ANSWER
Answered 2021-May-21 at 21:26you should import and use that package only on client side.
for import only in client side you can use require instead of import like that:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vitesse-ssr-template
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page