You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2023. It is now read-only.
Hello i install bootstrap 4 via npm so source files are in node modules.
I import scss files and works fine.
Now i want to add js files.
In modules i create folder b4.js and import jquery after that i import modules from bootstrap. Iget folowing error that jQuery is not defind in import file.
code
import jQuery from '../../../node_modules/jquery/dist/jquery';
import '../../../node_modules/bootstrap/js/dist/alert'
I also import file in app.js
My question is how can i import bootstrap js to project when i add it like simple cdn file it works fine.
The text was updated successfully, but these errors were encountered:
Bootstrap4 uses an in-house dependency system, so Webpack won't be able to resolve any dependencies in the bootstrap javascript modules. You may find this readme helpful. Without the Provide plugin definitions like that example has, none of the bootstrap javascript works correctly.
Here's the github issue where it's explained. You'll also need the exports-loader installed!
Hello i install bootstrap 4 via npm so source files are in node modules.
I import scss files and works fine.
Now i want to add js files.
In modules i create folder b4.js and import jquery after that i import modules from bootstrap. Iget folowing error that jQuery is not defind in import file.
code
I also import file in app.js
My question is how can i import bootstrap js to project when i add it like simple cdn file it works fine.
The text was updated successfully, but these errors were encountered: