Skip to content
Advertisement

Uncaught TypeError: Cannot read properties of undefined (reading ‘use’)

I’m trying to start a new project using vue js. I think I have all the dependencies I need through the terminal. I installed npm, vue, vue-bootstrap and vue-router. Error is from line 7 on router.js, Vue.use(VueRouter).

Here’s the code for my main.js

JavaScript

Here’s my router.js

JavaScript

Sorry, I had the import vue line on the same line as the code indicators and it got cut off, I have the error still.

The full error is this:

JavaScript

Advertisement

Answer

Answer from Hiws:

BootstrapVue doesn’t support Vue 3, so you’ll have to either use Vue 2 or use another component library

Thanks.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement