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

OverlayBadge: Failed to resolve component: Badge #5991

Closed
anantakrishna opened this issue Jun 29, 2024 · 0 comments
Closed

OverlayBadge: Failed to resolve component: Badge #5991

anantakrishna opened this issue Jun 29, 2024 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@anantakrishna
Copy link

Describe the bug

Using an OverlayBadge according to the docs:

<script setup>
import OverlayBadge from 'primevue/overlaybadge';
</script>

<template>
<OverlayBadge value="2">
    <i class="pi pi-bell" style="font-size: 2rem" />
</OverlayBadge>
</template>

Getting such an error:

Failed to resolve component: Badge
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. 
  at <OverlayBadge severity="contrast" > 
  at <App>

Versions:

  "dependencies": {
    "@primevue/themes": "^4.0.0-rc.2",
    "primevue": "^4.0.0-rc.2",
    "vue": "^3.4.21"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^5.0.4",
    "vite": "^5.2.8"
  }

Reproducer

https://stackblitz.com/edit/vitejs-vite-dfck57?file=src%2FApp.vue

PrimeVue version

4.0.0-rc.2

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@anantakrishna anantakrishna added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 29, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 3, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.0.0-rc.4 milestone Jul 3, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Jul 3, 2024
@tugcekucukoglu tugcekucukoglu modified the milestones: 4.0.0-rc.4, 4.0.0 Jul 3, 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