How to use SSR without nuxt?
See original GitHub issueI’m converting my project into SSR. Now i’m confused how to use vue-awesome-swiper without using Nuxt.js. I’m getting ‘Failed to resolve directive: swiper’ error even by using the following code(inside app.js).
if (process.BROWSER_BUILD) {
const VueAwesomeSwiper = require('vue-awesome-swiper/dist/ssr')
Vue.use(VueAwesomeSwiper)
}
Actually I’m facing another problem with third-party plugins which use window
and I get windows is undefined
.
Plugins like : labelauty - jquery-nice-select - etc
How can I use this plugins? There should be a way to run call them in client side !? Can anyone help me with a complete solution?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Server Side Rendering - Nuxt
Server-side rendering (SSR), is the ability of an application to contribute by displaying the web-page on the server instead of rendering it in...
Read more >How can I turn off SSR for only certain pages in Nuxt.js to use ...
I want to develop an application with Nuxt.js that uses SSR for only certain pages (like artist page user page), so the pages...
Read more >Is it possible to use Nuxt without SSR? #931 - GitHub
I would like to use Nuxt without SSR. I am not talking about nuxt generate because it does not support dynamic params in...
Read more >Server-Side Rendering (SSR) - Vue.js
Nuxt is a higher-level framework built on top of the Vue ecosystem which provides a streamlined development experience for writing universal Vue applications....
Read more >Nuxt.js — Best practices for client-side-only contents (client ...
Not all third party components support server side rendering (SSR). Nuxt.js provides a way for you to exclude those components from the ...
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
对于这个问题折腾了不少时间,分享出来 like this
i use Custom Build with Swiper solved this problemhttps://www.npmjs.com/package/vue-awesome-swiper#custom-build-with-swiper
Finally don’t forget to import the style!!!