-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatiblity with nuxtjs / SSR? #261
Comments
I haven't tried Keen UI with Vue's SSR, and it may not be compatible due to use of the However, try: if (process.BROWSER_BUILD) {
var KeenUI = require('keen-ui').default;
Vue.use(KeenUI);
} This may help, as using |
I'm having this problem too, requiring only for the browser build works temporarily if you're just developing, but it causes Vue to have to completely rerender instead of rehydrate, which is definitely not ideal and not suitable for production. Also for me Haven't had a chance to poke around the source yet but I might just go around and naively wrap every use of |
So far I've tried adding checks to |
Has there been any new developments regarding this issue? |
Hey @Pitu, Unfortunately there's nothing yet. This is something I'm looking into for the upcoming v1.1 release. |
Looking forward to the new version, just want to mention that the PR made by @MarcoThePoro solves the issue. Made a fork and applied the patches and haven't had any problems so far. |
Cool. Currently listening to your radio stream on https://listen.moe and even though I don't understand the language, I think it's pretty good! 👍 |
Haha glad you are enjoying it! 🎵 |
@JosephusPaye hello, any news regarding SSR/Nuxt support? |
Hi @iamdubx, unfortunately, there are no plans for SSR support in the near future. |
Is that still the case @JosephusPaye? Unfortunately, no SSR compatibility is a deal-breaker as SEO-friendly websites with readable HTML elements are absolutely critical. As @muhajirdev mentioned, it works with Element UI. There may be something you can copy from. |
I tried to use keen-ui with nuxtjs.
But when i run
npm run dev
keep getting errordocument is not defined
.I tried to follow the guidelines on nuxtjs.
( https://nuxtjs.org/guide/plugins/ , https://nuxtjs.org/faq/window-document-undefined/ )
I have tried to use the plugin on the client side only
But everything works perfectly when i try to use
element-ui
Just wondering, is keen-ui SSR friendly?
Btw, good work on this UI , i love it :)
The text was updated successfully, but these errors were encountered: