SSR support?
See original GitHub issueI’m trying to use vue-resource together with vuejs 2.0 and server side rendering
.
Is this possible now?
I’m getting this error:
ReferenceError: document is not defined
at Object.<anonymous> (/usr/src/app/node_modules/vue-resource/dist/vue-resource.common.js:641:10)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (__vue_ssr_bundle__:3489:18)
at __webpack_require__ (__vue_ssr_bundle__:21:30)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:11
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Server-Side Rendering - Vite
Vite provides built-in support for server-side rendering (SSR). The Vite playground contains example SSR setups for Vue 3 and React, which can be...
Read more >SSR Support for AWS Amplify JavaScript Libraries
Enabling Server-Side Rendering (SSR) support in an Amplify app. When using the Amplify CLI, the aws-exports.js file gets created and updated ...
Read more >Server-Side Rendering (SSR) - Vue.js
Vite SSR # ... Vite provides built-in support for Vue server-side rendering, but it is intentionally low-level. If you wish to go directly...
Read more >Using Server-side Rendering (SSR) - Gatsby
Server-side Rendering (SSR) is one of Gatsby's rendering options and allows you to pre-render a page with data that is fetched when a...
Read more >Server Side Rendering - SAFE Documentation
Server-Side Rendering (SSR) means that some parts of your application code can run on both the server and the client. For React this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
One more idea is to use an HTTP client that’s built to be used both on server and in browser, like axios.
i use this for a while