i have nuxt js project with version 2.6 I have used persistedstate storage package in it.When i remove persistedstate than nuxt new routes are not working.
Related
I have a serving Nuxt package that reads a configuration from nuxt.config.js.
This one I would like to use in a VueJS project.
Is there a way to import it and read the config from the main.js of a VueJS project?
I've a vue project created with vue cli 3 and I've installed vue-electron-builder plugin to make electron app with vuejs. Now I've an existing electron app and I want to move the files from the existing electron app to the vue project but I'm confused :(
Build your vue-electron5 project through https://github.com/kdydesign/vue-electron5
Then, insert the file associated with the vue from the renderer path and set it to the electron in the new project with the existing electron settings.
I am new to nuxt. I want to know whether is it possible to use Buefy on nuxt just by using CDN
as I directly imported beufy CDN in script in head function of nuxt.config
But it gave error while using navbar of beufy that the component is not registered correctly.
Nuxt supports buefy by default, when installing using npx create-nuxt-app you'll be asked if you want to use a component framework (buefy is an option here).
If you want to use it in an installed project you can npm install buefy --save and then add "nuxt-buefy" in the modules array of your nuxt.config
I have an Existing Vue js app which was not built using Vue CLI, Now I want to convert this app to a Vue CLI project how can I achieve it and what changes I have to make to my existing app in order to make it successful
The new Vue.js 3.0 plugin architecture is nice, but it seems to to be missing a router plugin. If I choose not to install routing when I first create the project (vue create my-project), I'd expect that I could change my mind later and add routing with something like vue add #vue/router, but that plugin doesn't appear to exist. Is there a way to add routing from the CLI after the fact?
After some experimenting with vue-cli3, i found that you can use vue add to setup components you missed.
Use vue add router That set up the routing and created some sample components Home and About.
This also work for other modules like adding vuetify with vue add vuetify. You can read more about vue add from the plugins and presets guide
Have a look at the issue page here: https://github.com/vuejs/vue-cli/issues/1202, the conclusion is you can't use cli to add router if you didn't choose router initially.
With three reasons:
Late-adding router when you've already modified the entry file is extremely fragile.
If you haven't modified the file much, you can just re-generate the project instead.
If we only add the dependency and skip the file-modifying part, then it's easier to just npm install vue-router or yarn add vue-router.