Skip to content

Tooltip is 'undefined' in popover.js #998

Closed
@milenon

Description

@milenon

I'm running my project with Webpack, using bootstrap-vue@1.0.0-beta.7 and in my vue files I'm directly importing only the components I need like this:

import Popover from 'bootstrap-vue/lib/components/popover.vue';

And I have the error that Tooltip is 'undefined' in popover.js.

I think this is due to circular dependency because in popover.js we are importing Tooltip from the index.js where we are importing the Popover again.
And we have the same issue in tooltip.js where we are importing
import { BvEvent } from './';

I think that for files residing in the same folder we should go with straight imports:

import ToolTip from './tooltip';
import BvEvent from './BvEvent';

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions