Comments (3)
Add it as a plugin https://nuxtjs.org/docs/2.x/directory-structure/plugins/
from vue-dnd-zone.
Can be added to a nuxt project like any other vue plugin
from vue-dnd-zone.
Hi there,
First thanks for your work @supraniti :)
Like @idzubans I'm trying to make vue-dnd-zone works with Nuxt. I'm not a pro with Nuxt or Vue but after trying around, I managed something. So I will share for others.
I added it as a plugin with those lines (following the doc @JoeEarly pointed):
import Vue from 'vue'
import VueDndZone from 'vue-dnd-zone'
Vue.use(VueDndZone)
And in nuxt.config.js :
plugins: [{ src: '~/plugins/vue-dnd-zone.js', ssr: false }],
css: ['@/node_modules/vue-dnd-zone/vue-dnd-zone.css'],
By using the code showed here (the grid one) and adding data in script, I managed to have something working. It's a start!
But I've got a DOM error in the browser console :
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.
Although it will be reaaaally helpful if you show the complete code (template, script and css) for all your examples (list, grid, nested grid and especially the one on About page) :)
Thanks a lot in advance for any help and your time.
BR
from vue-dnd-zone.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-dnd-zone.