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

Using @nuxtjs/bootstrap-vue causes This relative module was not found #178

Open
martijnhiemstra opened this issue Dec 20, 2017 · 3 comments

Comments

@martijnhiemstra
Copy link

martijnhiemstra commented Dec 20, 2017

I have started a blank Nuxt.js project. I install the @nuxtjs/bootstrap-vue module and I add the module to my nuxt.config.js file. My module section looks like this:

modules: [
    '@nuxtjs/axios',
    '@nuxtjs/bootstrap-vue'
],

When I run npm run dev I get an error

This relative module was not found:

* ../bootstrap/dist/css/bootstrap.css in ./node_modules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":["/home/martijn/Projects/training/node_modules/babel-preset-vue-app/dist/index.common.js"]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./.nuxt/App.vue

Looks like a bug in the @nuxtjs/bootstrap-vue module. How can I fix this?

This question is available on Nuxt.js community (#c110)
@junqdu
Copy link

junqdu commented Jan 5, 2018

also seeing this issue

@junqdu
Copy link

junqdu commented Jan 5, 2018

@martijnhiemstra I have figured it out.
In nuxt.config.js,
change

  modules: [
    '@nuxtjs/bootstrap-vue'',

    // Or if you have custom bootstrap CSS...
    ['@nuxtjs/bootstrap-vue', { css: false }],
  ],

to

  modules: [
    // Or if you have custom bootstrap CSS...
    ['@nuxtjs/bootstrap-vue', { css: false }],
  ],

@redcpp
Copy link

redcpp commented Jan 13, 2018

I solved it by installing bootstrap too

npm install [email protected]

Then restart the server and reload the website

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

3 participants