vite-ssr
vite-ssr copied to clipboard
Use Vite for server side rendering in Node
closes #166
Hi! I use the following versions: - vite-ssr v0.17.1 - yarn 1.22.19 - vue 3.x After `yarn install` I become: ```log warning "vite-ssr > @rollup/[email protected]" has unmet peer dependency "rollup@^1.20.0...
[solution](javascript:;) vite-ssr\vue\entry-server.js const { headTags = '', htmlAttrs = '', bodyAttrs = '', } = head ? await renderHeadToString(head) : {}; ```js import { createApp } from 'vue'; import {...
The purpose of the changes in this PR is to add support for the consumer of the library to use newer versions of the `@vueuse/head` library, while still retaining compatibility...
internal/modules/cjs/loader.js:948 throw new ERR_REQUIRE_ESM(filename); ^ Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: D:\work\开源\webGl\day01install\vite-ssr-demo\dist\server\main.mjs at new NodeError (internal/errors.js:322:7) at Module.load (internal/modules/cjs/loader.js:948:11) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) at require...
Hi! I'm having issues with "conflicting peer dependency" when adding the latest @vueuse/head package in our repo. Is it possible to upgrade this too in your peer dependencies?
React 18 came out a year ago with built-in support for streaming via [`renderToPipeableStream`](https://beta.reactjs.org/reference/react-dom/server/renderToPipeableStream) (Node.js) and [`renderToReadableStream`](https://beta.reactjs.org/reference/react-dom/server/renderToReadableStream) (Web Streams). Using `renderToString` does not work with Suspense and is not recommended...
Hello, thx for the package update. I have a question about using vue-query with vite-ssr. Should we use @nuxt/devalue in transformState? Its work, but devalue logged `Cannot stringify a function...
Is there any guide on how to handle errors, e.g. 500, on the server side? I still can't figure out how to do it with this plugin: ``` export default...
when i call my API directly from Vue components in client. i use useContext() and vue warn 'inject() can only be used inside setup() or functional components.'