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
navbar doesn't work #6
Comments
@miquels Thanks for Report! Vue.js 2 default builds don't support 'template' rendering any more :) About your first problem, i could not reproduce that error! (default dist file, exportes setup on |
Meanwhile problem is resolved, you can either: Adding this to webpack resolver config: resolve: {
alias: {vue: 'vue/dist/vue.js'}
}, Or `import Vue from 'vue/dist/vue'`` |
I found the 'setup' problem. This:
doesn't work because you export 'setup' directly, not 'something.setup'. The fix is to not do destructuring:
|
However, the original issue is still not resolved. vue-cli asks during setup of the project if you want the full version or the runtime-only version, and I already chose the full version. My build/webpack.base.conf.js has
Using I looked into the vuejs source, to see where " Failed to mount component: template or render function not defined." comes from. It's in src/core/instance/lifecycle.js::lifecycleMixin(), and it does something like
so in fact the reason that I see the error "Failed to mount component: template or render function not defined" is an indicator that I am, in fact, using the full version, not the runtime-only build. BTW,
Mike. |
@miquels sorry I was a little busy .. Everything is fixed on 0.1 release :
|
* dropdown item Keyboard navigation for ARIA More closely aligns with proposed Bootstrap V4 dropdown keyboard navigation. (similar to how native select elements work) When dropdown opens, the dropdown menu is focused. Keyboard up/down will navigate the dropdown list. tabbing out of the dropdown will close the dropdown (and focus the next element based on normal tab flow). hitting ESC will also close the dropdown and refocus either the button or toggle button (depending on if the button is split or not). Also made the .sr-only "Toggle Dropdown" text a prop (toggleText) to allow for different languages. * Changed tabs to spaces * Changed tabs to spaces * fixed typo on toggleText prop * Typo * Better ES6 syntax * Update dropdown.vue * Revert for now * Fixed feedback class, & change choosing target ID Changed feedback text block from class 'form-text' to 'form-control-feedback' to convey state. Added ARIA role="alert" to feedback div. Changed the target select from first child of content to querySelector() of first input element in content ref. * Fixed form-option disabled bug Option `disabled` wasn't being factored into `formOptions()` computed result. * Fixed form-option disabled bug Option disabled wasn't being factored into formOptions() Return disabled = false if "falsey" * Merging latest master commits (#6) * Fix validation on 'offset' prop in Popover * Add 'targetOffset' prop to Popover * Fix lint tests - comment edit just included to permit commit * Latest from master fork (#7) * Fix validation on 'offset' prop in Popover * Add 'targetOffset' prop to Popover * Fix lint tests - comment edit just included to permit commit * Revert "Latest from master fork (#7)" (#8) This reverts commit 3222513.
In #5 I reported that navbar doesn't work. That issue was closed as (apparently, sorry about that) I was working with a fork called vue2-bootstrap4.
But using bootstrap-vue instead of vue2-bootstrap4 I have the exact same problem.
This is my code. Note that this:
gives an error:
so I changed it to the Vue.use() code below. Now it works for things like button-group, but navbar fails.
src/main.js:
src/App.vue:
Mike.
The text was updated successfully, but these errors were encountered: