Skip to content
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

Missing dependency bootstrap vue #28

Open
LeducH opened this issue Sep 13, 2019 · 4 comments
Open

Missing dependency bootstrap vue #28

LeducH opened this issue Sep 13, 2019 · 4 comments

Comments

@LeducH
Copy link

LeducH commented Sep 13, 2019

I want to test your template/theme after running npm run serve I get

 ERROR  Failed to compile with 4 errors                                                                                                                      2:52:08 PM

These dependencies were not found:

* bootstrap-vue/es/components/carousel/carousel in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/components/Carousel.vue?vue&type=script&lang=js&
* bootstrap-vue/es/components/carousel/carousel-slide in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/components/Carousel.vue?vue&type=script&lang=js&
* bootstrap-vue/es/directives/popover/popover in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/components/JavascriptComponents/Tooltips.vue?vue&type=script&lang=js&
* bootstrap-vue/es/directives/tooltip/tooltip in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/components/JavascriptComponents/Tooltips.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save bootstrap-vue/es/components/carousel/carousel bootstrap-vue/es/components/carousel/carousel-slide bootstrap-vue/es/directives/popover/popover bootstrap-vue/es/directives/tooltip/tooltip

I tried installing the depencies but get

 $ npm install --save bootstrap-vue/es/components/carousel/carousel bootstrap-vue/es/components/carousel/carousel-slide bootstrap-vue/es/directives/popover/popover bootstrap-vue/es/directives/tooltip/tooltip
npm ERR! code ENOLOCAL
npm ERR! Could not install from "bootstrap-vue/es/components/carousel/carousel" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2019-09-13T12_57_52_055Z-debug.log
@CamWang
Copy link

CamWang commented Sep 15, 2019

use yarn instead of npm can get the right packages

@damithatiqri
Copy link

Didn't worked for me.
What did work was,
In F:\Projects\ExPath\Themes\vue-argon-design-system-master\src\views\components\Carousel.vue => bootstrap-vue/es/components/carousel/carousel to bootstrap-vue/esm/components/carousel/carousel
and
in F:\Projects\ExPath\Themes\vue-argon-design-system-master\src\views\components\JavascriptComponents\Tooltips.vue did the same as above for es.

And updated node-sass and sass-loader to the latest

@jonalxh
Copy link

jonalxh commented Sep 23, 2019

I've changed the way of importing the components. You have to edit Carousel.vue and Tooltips.vue:

In Carousel.vue:

import {BCarousel} from "bootstrap-vue";
import {BCarouselSlide} from "bootstrap-vue";

In Tooltips.vue:

import {BTooltip} from "bootstrap-vue";
import {BPopover} from "bootstrap-vue";

@AymanEG
Copy link

AymanEG commented Oct 6, 2019

using yarn solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants