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

Type declaration and export bug on ConfirmationService #2266

Closed
CRC32EX opened this issue Mar 7, 2022 · 0 comments
Closed

Type declaration and export bug on ConfirmationService #2266

CRC32EX opened this issue Mar 7, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@CRC32EX
Copy link

CRC32EX commented Mar 7, 2022

[x] bug report

CodeSandbox Case (Bug Reports)
I can't found Nuxt3 template.

Current behavior
image

Expected behavior
image

Minimal reproduction of the problem with instructions

// plugins/primevue.js

import { defineNuxtPlugin } from '#app'
import PrimeVue from 'primevue/config'

import ConfirmDialog from 'primevue/confirmdialog'
import ConfirmationService from 'primevue/confirmationservice'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(PrimeVue, { ripple: false })

  nuxtApp.vueApp.use(ConfirmationService)
  nuxtApp.vueApp.component('ConfirmDialog', ConfirmDialog)
})
// pages/index.vue

<template>
  <div>
    <ConfirmDialog />
    <Button @click="confirm1()" label="Confirm" />
  </div>
</template>

<script setup>
import { useConfirm } from 'primevue/useconfirm'

const confirm = useConfirm()

const confirm1 = () => {
  confirm.require({
    message: 'Are you sure you want to proceed?',
    header: 'Confirmation',
    icon: 'pi pi-exclamation-triangle',
    accept: () => {
      alert('accept')
    },
    reject: () => {
      alert('reject')
    }
  })
}
</script>

Please tell us about your environment:

  • Windows 10
  • Visual Studio Code 1.65.0 (user setup)
  • Node.js: 14.16.0

Vue version:

  • Vue 3.2.31
  • Nuxt3 beta 3.0.0-27439932.78761c2

PrimeVue version:

  • PrimeVue 3.12.1

Browser:

  • Chrome
  • Firefox
  • Edge
@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 16, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.12.2 milestone Mar 16, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Mar 16, 2022
@tugcekucukoglu tugcekucukoglu changed the title [Nuxt3][ConfirmDialog]Not working Type declaration and export bug on ConfirmationService Mar 16, 2022
tugcekucukoglu added a commit that referenced this issue Mar 16, 2022
Fixed #2266 - Type declaration and export bug on ConfirmationService
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