Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datatable not working in the typescript environment. #39

Closed
nsksaisaravana opened this issue Aug 26, 2019 · 1 comment
Closed

Datatable not working in the typescript environment. #39

nsksaisaravana opened this issue Aug 26, 2019 · 1 comment

Comments

@nsksaisaravana
Copy link

Hi, i am evaluating the primvue components in the typescript environment, when I tried the primevue datatable component it is not working, please check the repository. for more information

https://github.com/nsksaisaravana/PrimeVue-Quickstart

image

@fuvito
Copy link

fuvito commented Aug 26, 2019

Hi Nsk,

The documentation is missing that point, you need to add "Column" to your main.ts:

...
import Column from "primevue/column";
import DataTable from "primevue/datatable";
...
Vue.component('Column', Column);
Vue.component('DataTable', DataTable);
...

had the same issue with TS, and also JS, by adding column to main.ts / main.js the problem goes away,

And:

instead of
import {DataTable} from 'primevue/datatable';
use:
import DataTable from "primevue/datatable";

tugcekucukoglu pushed a commit that referenced this issue Jul 30, 2024
Fix: Add inputId Prop to BaseColorPicker Component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants