Skip to content
#

nuxtjs

nuxt logo

Nuxt.js is a framework for creating Vue.js applications. You can choose between Universal, Static Generated or Single Page applications.

Here are 1,557 public repositories matching this topic...

bootstrap-vue
wzxxzw
wzxxzw commented Jul 25, 2019

.英文不是很好,用的是nuxt.js,在刷新引入插件的页面会报window is not defined

// nuxt.config.js
plugins: [ {src: '~plugins/swiper',ssr: false} ],

//plugins文件夹下

import Vue from 'vue';
if (process.BROWSER_BUILD) {
const VueAwesomeSwiper = require('vue-awesome-swiper/dist/ssr');
Vue.use(VueAwesomeSwiper);
}

.vue文件
import { swiper, swiperSlide } from 'vue-awesome-swiper';
compone

AlanLeonard
AlanLeonard commented Jan 9, 2020

What problem does this feature solve?

Currently, if I want to use the @nuxtjs/router I'm left with a blank sitemap which doesn't take into account the custom routes I added manually in my router.js file as per @nuxtjs/router documentation. This would eliminate redundancy of definition of routes

What does the proposed changes look like?

Instead of using the result of createRoutes from

wuxt
WeAspireDev
WeAspireDev commented Sep 6, 2018

When I first ran yarn build it threw an error nuxt command not found, then I ran yarn setup
and got error something like non compatible node version mine is 10.8 and it expect 8.
I ran yarn build again now this time it didn't fail.
Then I ran yarn deploy and I got error as firebase function not found so I ran npm install in prod/server , then again yarn deploy and the app was de

renoirb
renoirb commented Apr 19, 2018

Or rather some more notes about how to make Koa/Nuxt collaborate outside of using an HTTP axios request.

I see we can use ctx.session and use have it passed back when we do this.$axios from a page asyncData/fetch method.

But mostly this is about hinting and/or leaving notes to show how one thing is done (or called) in this stack

  • "Flash" messages... to client side from a Koa route
  • Ho

Created by Sébastien Chopin & Alexandre Chopin

Released November 2016

Latest release about 2 months ago

Repository
nuxt/nuxt.js
Website
nuxtjs.org
Wikipedia
Wikipedia

Related Topics

javascript spa ssr vue
You can’t perform that action at this time.