K
K
Kirill2021-06-20 01:00:44
Bootstrap
Kirill, 2021-06-20 01:00:44

How to connect bootstrap js to vue.js?

import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap-icons/font/bootstrap-icons.css'
import 'bootstrap/dist/js/bootstrap.bundle.min' /* Не работает */

createApp(App).use(store).use(router).mount('#app')


Can't import bootstrap's js into vue.js. CSS is imported normally, it can be seen through the code inspector, but JS is not there.
How can bootstrap's js be imported into vue.js without adding it to index.html?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grebenyukov, 2021-06-20
@kustiktm_kirill

Look at https://bootstrap-vue.org/docs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question