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

Column component registration fails with Typescript #29

Closed
ghost opened this issue Aug 6, 2019 · 7 comments
Closed

Column component registration fails with Typescript #29

ghost opened this issue Aug 6, 2019 · 7 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ghost
Copy link

ghost commented Aug 6, 2019

Following the basic example of your documentation, DataTable does not work.

I report the console log error:

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option...

Dependencies

  • Vue 2.6.10
  • core-js 2.6.5
  • primevue-1.0.0-beta6
@fuvito
Copy link

fuvito commented Aug 6, 2019

Workaround: introduce the component in main.js,

i.e. Column:

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

@cagataycivici cagataycivici self-assigned this Aug 7, 2019
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 7, 2019
@cagataycivici cagataycivici added this to the 1.0.0-beta.6 milestone Aug 7, 2019
@cagataycivici
Copy link
Member

1.0.0-beta.6 should have fixed this. Could you please confirm?

@fuvito
Copy link

fuvito commented Aug 7, 2019

Cagatay, after upgrading to 1.0.0-beta.6 I am still seeing the same behavior. I am having problem with "Column". As long as it is registered like I mentioned before, it works, otherwise I am getting the same error as Michele's

@ghost
Copy link
Author

ghost commented Aug 8, 2019

1.0.0-beta.6 should have fixed this. Could you please confirm?

No, still have the same problem in 1.0.0-beta.6

@cagataycivici
Copy link
Member

Hmm, I can't see this with beta.6, today beta.7 is released with the new TreeTable and InputMask in addition to resizable columns for DataTable, please update to beta.7 and hopefully it will fix it.

https://www.primefaces.org/primevue-1-0-0-beta-7-released/

@fuvito
Copy link

fuvito commented Aug 15, 2019

Cagatay,

If you like, I've added you as a collaborator to https://github.com/fuvito/vuepv.git, you can see the problem over there,

(after you login go to Admin --> Tiers)

Will send you login credentials through other means,

One note: I converted above project to TypeScript, and started getting other errors, then created a file Column.d.ts under ..\node_modules\primevue\components\column, then it started working again,

--fuat

not: projenin readme'si kullanici adi ve sifresini icermekte

@cagataycivici
Copy link
Member

Ok, it happens with Typescript only, fixing now.

@cagataycivici cagataycivici changed the title DataTable: missing registration component? Column component registration fails with Typescript Aug 21, 2019
tugcekucukoglu pushed a commit that referenced this issue Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants