-
Notifications
You must be signed in to change notification settings - Fork 668
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
Cannot convert undefined or null to object #853
Comments
Happens at this line. |
I suppose my usage of closures to lazy-load components in my <script>
export default {
components: {
bContainer: () => import("bootstrap-vue/es/components/layout/container"),
bCollapse: () => import("bootstrap-vue/es/components/collapse/collapse"),
bNavItem: () => import("bootstrap-vue/es/components/nav/nav-item"),
bNavbar: () => import("bootstrap-vue/es/components/navbar/navbar"),
bNavbarBrand: () =>
import("bootstrap-vue/es/components/navbar/navbar-brand"),
bNavbarNav: () => import("bootstrap-vue/es/components/navbar/navbar-nav"),
bNavbarToggle: () =>
import("bootstrap-vue/es/components/navbar/navbar-toggle"),
bButtonGroup: () =>
import("bootstrap-vue/es/components/button-group/button-group"),
bButton: () => import("bootstrap-vue/es/components/button/button")
}
// ...
} In this snippet from Object.keys(components).forEach(function (component) {
var cmp = components[component];
var componentOptions = typeof cmp === 'function'
? cmp.extendOptions
: cmp;
// Remove cached constructor
delete componentOptions._Ctor;
if (!componentOptions.name) {
componentOptions.name = component;
}
stubbedComponents[component] = createBlankStub(componentOptions, component);
}); |
Thanks for the detailed bug report. I've added support for dynamic components which will be released in beta.22 this evening. |
Thanks a lot, @eddyerburgh! |
Version
1.0.0-beta.21
Reproduction link
https://gitlab/mygroup/myproject
Steps to reproduce
What is expected?
The tests should pass (like they did in
1.0.0-beta.20
).What is actually happening?
The text was updated successfully, but these errors were encountered: