I am having problems loading bootstrap-vue js

2
import Vue from 'vue' 
import App from './App.vue'
import BootstrapVue from 'bootstrap-vue' 
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-      
vue.css'
 Vue.use(BootstrapVue);
 new Vue({ el: '#app',
 render: h => h(App) })
  

ERROR in ./~/bootstrap-vue/dist/bootstrap-vue.css Module parse failed:
  C: \ Users \ Batip \ Desktop \ test-project \ myproject \ node_modules \ bootstrap-vue \ dist \ bootstrap-vue.css
  Unexpected token (1: 0) You may need an appropriate loader to handle   this file type.

    
asked by anonymous 14.09.2017 / 22:25

1 answer

1

Join the% loader with the% loader, along with what you should already have to compile the files webpack.config.js :

{
    test: /\.vue$/,
    loader: 'vue-loader'
},
{
    test: /\.css$/,
    loader: 'style-loader!css-loader'
},

This implies that you must have .vue and css-loader in package.json installed.

    
14.09.2017 / 22:50