question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `BvEvent` and `BvModalEvent` TypeScript definitions

See original GitHub issue

I’m using bootstrap-vue together with TypeScript, and BvEvent is missing from the type declarations. This is required for example in modal ok events:

ok(evt: BvModalEvent): void {
  evt.vueTarget ...
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
pingustarcommented, Apr 29, 2019

I think my error falls under the same issue:

ERROR in /home/.../.../file.vue
321:10 Property '$bvModal' does not exist on type 'UserPackages'.
    319 |       action: action
    320 |     }
  > 321 |     this.$bvModal.show('modal-staking')
        |          ^
    322 |   }
    323 | 

is there a workaround to fix this error? Thanks -J

1reaction
tmorehousecommented, Apr 29, 2019

PRs and help are appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to listen to events from bootstrap-vue modal?
So when I click on ok (next) in add-post component I want the second modal to pop up. vue.js · bootstrap-vue · Share....
Read more >
Modal | Components - BootstrapVue
Modals are streamlined, but flexible dialog prompts powered by JavaScript and CSS. They support a number of use cases from user notification to...
Read more >
Changelog | Misc | BootstrapVue - API Manual
Automatically adds transformAssetUrls settings for BootstrapVue component props. Reverted the es/ build directory back to mini-commonjs modules (from true ES ...
Read more >
bootstrap-vue - UNPKG
utils/object'\n\nclass BvModalEvent extends BvEvent {\n constructor(type, eventInit = {}) {\n super(type, eventInit)\n // Freeze our new props as readonly, ...
Read more >
bootstrap-vue | Yarn - Package Manager
... b-table: add missing sortKey field type and correct a typo (#6355 (f5ca62f) ... b-tabs: emit cancelable BvEvent before changing tabs via new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found