euvl / vue-js-grid

:bento: Vue.js 2.x responsive grid system with smooth sorting, drag-n-drop and reordering
https://euvl.github.io/vue-js-grid/
MIT License
953 stars 109 forks source link

Failed to mount component: template or render function not defined. #27

Open felipeminello opened 5 years ago

felipeminello commented 5 years ago

I try to use the plugin as described in the example, but I get this error in console:

Failed to mount component: template or render function not defined.

irongollem commented 5 years ago

I have the same issue. Removing the template or changing the slot to slot-scope (as suggested by the given console warning) didn't fix this.

irongollem commented 5 years ago

I resolved this issue in pr 29: https://github.com/euvl/vue-js-grid/pull/29 IT had a self closing html tag followed by its closer (I wonder how this would work for anyone?)

hitriyvalenok commented 5 years ago

I have the same issue with v1.0.1 installed via npm. Tried many of variants without result.

import Grid from 'vue-js-grid';
...
<grid
    :draggable="true"
    :sortable="true"
    :items="photos"
    :height="100"
    :width="100">
</grid>
{
  "name": "vue-test-2",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "test:unit": "vue-cli-service test:unit"
  },
  "dependencies": {
    "@ckeditor/ckeditor5-build-classic": "^12.1.0",
    "@ckeditor/ckeditor5-vue": "^1.0.0-beta.2",
    "@johmun/vue-tags-input": "^2.0.1",
    "core-js": "^2.6.5",
    "vue": "^2.6.10",
    "vue-js-grid": "^1.0.1",
    "vue-router": "^3.0.3",
    "vuetify": "^1.5.5",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^3.7.0",
    "@vue/cli-plugin-eslint": "^3.7.0",
    "@vue/cli-plugin-unit-jest": "^3.7.0",
    "@vue/cli-service": "^3.7.0",
    "@vue/test-utils": "1.0.0-beta.29",
    "babel-core": "7.0.0-bridge.0",
    "babel-eslint": "^10.0.1",
    "babel-jest": "^23.6.0",
    "eslint": "^5.16.0",
    "eslint-plugin-vue": "^5.0.0",
    "sass": "^1.18.0",
    "sass-loader": "^7.1.0",
    "stylus": "^0.54.5",
    "stylus-loader": "^3.0.1",
    "vue-cli-plugin-vuetify": "^0.5.0",
    "vue-template-compiler": "^2.5.21",
    "vuetify-loader": "^1.0.5"
  }
}