Open juandahveed opened 2 years ago
Just to add to this since I've spent the last two days trying to figure this out, version 1.0.2
actually works just fine for me with the above code, however as soon as I update to the most recent version 1.0.12.
everything breaks and I only see a white screen. So I'm assuming the issue is not with my implementation.
I will attack my package.json
file so you can check the dependencies. Please let me know what's going on as I would like to use this and not have to worry about restricting versions. Thank you.
{
"name": "demo1",
"version": "8.0.21",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.2",
"@jobinsjp/vue3-datatable": "1.0.2",
"@popperjs/core": "^2.9.1",
"@soerenmartius/vue3-clipboard": "^0.1.2",
"@types/object-path": "^0.11.0",
"@vueform/multiselect": "^1.2.5",
"@yaireo/tagify": "^3.23.1",
"animate.css": "^4.1.1",
"apexcharts": "3.23.1",
"axios": "^0.21.1",
"axios-mock-adapter": "^1.18.1",
"bootstrap": "5.0.1",
"bootstrap-icons": "^1.4.0",
"clipboard": "^2.0.6",
"dropzone": "^5.7.2",
"element-plus": "^1.0.2-beta.52",
"i18n": "^0.13.3",
"line-awesome": "^1.3.0",
"nouislider": "^14.6.3",
"object-path": "^0.11.4",
"popper.js": "^1.16.1",
"prism-themes": "^1.5.0",
"prismjs": "^1.23.0",
"quill": "^1.3.6",
"socicon": "^3.0.5",
"sweetalert2": "^9.10.12",
"vee-validate": "^4.2.1",
"vue": "3.1.5",
"vue-axios": "^3.2.2",
"vue-clipboard3": "^1.0.1",
"vue-i18n": "^9.1.6",
"vue-inline-svg": "^3.0.0-beta.2",
"vue-prism-component": "^1.2.0",
"vue-router": "^4.0.3",
"vue3-apexcharts": "^1.2.1",
"vue3-clipboard": "^1.0.0",
"vue3-highlightjs": "^1.0.5",
"vue3-table-lite": "^1.1.3",
"vuex": "^4.0.0",
"yup": "^0.32.8"
},
"devDependencies": {
"@types/prismjs": "^1.16.2",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-eslint": "^4.5.10",
"@vue/cli-plugin-router": "^4.5.10",
"@vue/cli-plugin-typescript": "^4.5.10",
"@vue/cli-plugin-vuex": "^4.5.10",
"@vue/cli-service": "^4.5.10",
"@vue/compiler-sfc": "^3.0.6",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^5.0.2",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.4.1",
"node-sass": "^6.0.1",
"prettier": "^1.19.1",
"sass": "1.32.13",
"sass-loader": "^8.0.2",
"typescript": "^3.9.9",
"vuex-module-decorators": "^1.0.1"
}
}
hello @juandahveed, sorry for the delayed response. I was on holiday.
I tried running your code snippet directly in the datatable and it seems it is working.
Check: https://github.com/JoBinsJP/vue3-datatable/blob/test/src/components/Tables/Test.vue
Honestly the typo line was just from changing things multiple times during testing, I was never able to get it to work, I ended up using primevue instead, I’m sorry.
JD Antosiak | Full Stack Developer T: 888-717-4249 www.highlevelmarketing.com https://app.salesforceiq.com/r?target=608444936c8bce432a026471&t=AFwhZf1C5DH9sa0-FSlmVEMVz8iHeL4PK8cGC99KuB720pD7wdgj5kwuV1RL1TLlqCsrXyH5cwNu_2hOjStuIZXykA6Ta0JXCdxhCzp7d0WWaN-wOv0zPHevcdEWTSRj2CKx68vb-9yL&url=http://www.highlevelmarketing.com/?utm_source=signature&utm_medium=email&utm_campaign=hlm-email-signature Book a meeting https://calendly.com/jantosiak/30min
4.8 Star Google Rating - Over 430 reviews nationwide! Take your business to a high level https://app.salesforceiq.com/r?target=608444936c8bce432a026473&t=AFwhZf1C5DH9sa0-FSlmVEMVz8iHeL4PK8cGC99KuB720pD7wdgj5kwuV1RL1TLlqCsrXyH5cwNu_2hOjStuIZXykA6Ta0JXCdxhCzp7d0WWaN-wOv0zPHevcdEWTSRj2CKx68vb-9yL&url=https://www.highlevelmarketing.com/ace.html?utm_source=signature&utm_medium=email&utm_campaign=hlm-email-signature
On Jan 8, 2022, at 5:13 PM, Kristaps Vītoliņš @.***> wrote:
import {DataTable} from @.***/vue3-datatable";
Hi, have you tried on an empty green field vue3 project by
yarn add @jobinsjp/vue3-datatable
and then import {DataTable} from @.***/vue3-datatable";
your working example imports import { DataTable } from "../../../lib/DataTable" which is not installed package.
seems to me, typings are missing in the package.
— Reply to this email directly, view it on GitHub https://github.com/JoBinsJP/vue3-datatable/issues/19#issuecomment-1008163405, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNZKRZUZPDQTVCBW7ZTQU3UVCZJNANCNFSM5K4OGKQQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.
I was able to run it but this really need some examples,
Why not add under https://vue3-datatable.netlify.app/table/pagination an example how achieve that.
<data-table data="data" pagination='...'>
also a composition api instead of Options api example. Its waste not to use this just because @puncoz is lazy to add some docs. :)
I've already read all the issues, I know you're working on documentation, and I know you'll say to "refer to the example on the src/components/table" page... However that doesn't help.
How am I supposed to load this into a component, here's some code and if anyone could comment back specifically how to fix it I would appreciate it. I'm fine once it loads, but it's just showing a white screen for me and an error about
TypeError: Object(...) is not a function at eval (webpack-internal:///./node_modules/@jobinsjp/vue3-datatable/dist/vue3-datatable.es.js:10)
I'm also aware that the only prop that is required is the "rows' and it's of type Array.
Please see the code below and explain why I only get a white screen. Thank you.