As I integrate Bootstrap 4 into my RequireJS configuration for my application, a warning arises:
An error occurred while loading the resource from: “”.
accompanied by this error message:
Error: Script error for "popper.js", required by: bootstrap https://requirejs.org/docs/errors.html#scripterror
I'm facing difficulties resolving this issue when using Bootstrap 4 with RequireJS/AMD. Any suggestions on how to tackle it?
require = {
paths: {
jquery: '/app/assets/vendor/jquery/dist/jquery.min',
popper: '//cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min',
bootstrap: '/app/assets/vendor/bootstrap/dist/js/bootstrap.min',
}
}
I've also attempted directly adding the <script>
tag for popper.js in the source code before including my compiled JavaScript, but it doesn't seem to solve the problem.
Any insights on what step I may be overlooking?