Top "Nuxt.js" questions

Nuxt.

How to add a polyfill to nuxt 2.0?

In Nuxt 1.4.2, I had the following in my nuxt.config.js: build: { vendor: ['babel-polyfill'], babel: { presets: [ ['vue-app', { useBuiltIns: true, targets: { …

nuxt.js nuxt-edge
How to pass props to <nuxt /> component pages

Has anyone been able to pass props to pages in Nuxt.js? Typical Vue.js props can be passed as …

nuxt.js
POST file along with form data Vue + axios

I have a method for Vuejs component: async submit () { if (this.$refs.form.validate()) { let formData = new FormData() formData.append(…

php vue.js vue-component axios nuxt.js
Nuxt.js Loading data serverside with nuxtServerInit and Vuex

Currently i am working on storing data for a job opening application. For the backend i use Laravel and for …

javascript vue.js vuex nuxt.js vuex-modules
How to access to the vue store in the asyncData function of nuxt

in a component i want to acces to the store with the asyncData function like so : asyncData({ app, params }) { var …

vuejs2 nuxt.js
Error in running nuxt project: "'nuxt' is not recognized as an internal or external command"

When I tried to run npm run dev in my nuxt project, my console returned this message: 'nuxt' is not …

vue.js nuxt.js
Nuxt + Vuex - How do I break down a Vuex module into separate files?

In the Nuxt documentation (here) it says 'You can optionally break down a module file into separate files: state.js, …

javascript vue.js vuex nuxt.js
Pass custom data to `$router.push()` in vue-router

Is there a way to pass additional data to $router.push() that is not registered as param or query in …

javascript vuejs2 vue-router nuxt.js
Vue.js: Nuxt error handling

Struggling a bit to set up error handling with vuex. There seems to be quite a few ways to do …

javascript vue.js vuejs2 vuex nuxt.js
How to format Vuetify data table date column?

I have a simple data table using Vuetify data table. One of the column is a createdOn (date time), I …

javascript vue.js vuejs2 vuetify.js nuxt.js