Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Getting error for KtDataTable after set up the new version 8.1.1


I am using KTDataTable in 8.0.0 version and it seems to be working good.
When I download the latest version 8.1.1 and set up that in my project. I am getting errors like below

<pre>
Module not found: Error: Can't resolve '@/components/kt-datatable/KTDataTable.vue' in '/proprint/src/components/customers/cards/overview'<pre>

When I debug the code what I found
The file name of your orignal KtDataTable is KTDatatable.vue

When I opened this file 'frontend/src/components/customers/cards/overview/Invoices.vue'

the imported Ktdatatble file name is different like below and now it's giving me error
import Datatable from "@/components/kt-datatable/KTDataTable.vue";

Can you please check how can I solve this issue?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi Vinay,

We refactored a KTDatatable, now you can import datatable components from "@/components/kt-datatable/KTDataTable.vue".

Also, usage has been changed, you can refer to usage examples in our doc:
https://preview.keenthemes.com/metronic8/vue/docs/#/kt-datatables


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(