Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Parsing Error when adding Bootstrap to Vue 3

I would like to add bootstrap to my Vue 3 project. I added bootstrap through typing
cd <my-app> then vue add bootstrap-vue. After i have installed bootsrap i get an error in terminal telling me that i have an Parsing error: Unexpected token (10:4) and Declaration or statement expected. this error seems to occur in my vue.confiq.js file, where i have an red sqiggle. Anyone know how to solve this problem?

parsing error bootstrap vue 3

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

That’s because your css object is outside your config? From the looks of it, it should rather be inside the defineConfig.

module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      sass: {},
      scss: {},
    }
  }
});
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading