2

I have downloaded all the packages given below and imported in App.js file

import 'bootstrap/dist/css/bootstrap.min.css'
import 'jquery/dist/jquery.min.js'
import '@popperjs/core/dist/cjs/popper.js'
import 'bootstrap/dist/js/bootstrap.min.js' // problem in this line 

If I import bootstrap/dist/js/bootstrap.min.js then it says

./node_modules/bootstrap/dist/js/bootstrap.min.js
Module not found: Can't resolve 'popper.js' in 'project_root\client\node_modules\bootstrap\dist\js'

Even if I copy and paste popper.js file in

'project_root\client\node_modules\bootstrap\dist\js'

It still shows the error.

1 Answer 1

1
npm install popper.js --save

Popper is a dependency required by bootstrap so you will need to install it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.