GregPeden / click-confirm

Convenient and elegant inline user confirmation of UI events.
https://sirlamer.github.io/click-confirm/
MIT License
27 stars 13 forks source link

Failed to mount component: template or render function not defined - BPopover #18

Open sakaye opened 4 years ago

sakaye commented 4 years ago

Hello,

Recently all my click-confirm buttons are now failing after running 'npm run dev' during development of new components. Click-Confirm was working fine for months until a couple days ago. Any ideas on what could be the cause of this issue?

[Vue warn]: Failed to mount component: template or render function not defined.

found in

---> <BPopover>
       <ClickConfirm>
EmaX093 commented 3 years ago

I found a workaround, just remove this line from click-confirm.common.js:

var bPopover = _interopDefault(require('bootstrap-vue'));

and then

components: {
        bPopover: bPopover
}

and import Popover Plugin Globally in your app

import { PopoverPlugin } from 'bootstrap-vue';`
Vue.use(PopoverPlugin);

And it works.