In the Nuxt documentation (here) it says 'You can optionally break down a module file into separate files: state.js, actions.js, mutations.js and getters.js.'  I can't seem to find any examples of how this is done - lots of breaking down...
I'm building nuxt.js app with typescript. This is my code:  <script lang='ts'>     import {Component, Vue} from 'nuxt-property-decorator';     import {LOCATION} from '~/constants/graphql/location';      @Component({...
I want to use [email protected] module and nuxt-i18n together. The problem appears when I want to have different routes for login page. For example:  pages: {  login: {   en: '/authorization',   fr: '/autorisation'  } }   Routes are working w...
I am building a multilingual Nuxt web app.  Using this example from the official documentation (Codepen link), I no longer want to use local JSON files where my translations  are saved to work as defined in the code below:  messages: {       'en&...
I'm trying to host a Nuxt.js app on Firebase, and I've followed this tutorial, and I got stuck at #10, when trying to do sudo firebase serve --only functions, hosting. I kept getting this Timed out waiting for function to respond..     Upon f...
I have the template like this   <template> <div>   <div id="hiddenElement">     <MyElement v-for='...' @click="...">     </MyElement>   </div>    <div id="appendElementsHere" />...
In Nuxt.js, I did this folder structure:  ??? parent ?   ??? child1.vue ?   ??? child2.vue ??? parent.vue   In parent.vue, I have this:  <template>     <div>         <h3>Parent element</h3>         <ul>             &...
I'm new to VueJS and confused about the warning from nuxt:     'state' should be a method that returns an object in store/store.js   So, my store.js contains the following (yes im trying the tutorial from the documentation):  import Vue f...
I'm attempting to add an Axios plugin to Nuxt as described here, but it doesn't seem to work.  This is my plugins/axios.js file...  export default function({ $axios }) {   console.log('Im in the axios plugin')   $axios.defaults.baseUR...
Nuxt.js app.  I have this configuration (nuxt.config.js):  module.exports={     loading: { color: 'cyan' },     router: {     middleware: 'i18n'     },     plugins: ['~/plugins/i18n.js'],     generate: {     routes: ['/...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.