After attempting to install Bootstrap 4 version beta.2 along with its dependencies (jquery and popper.js), I encountered a strange problem. A SyntaxError message kept appearing in the console, specifically stating "SyntaxError: export declarations may only appear at top level of a module". Upon investigating further, I discovered that the culprit causing this issue was the popper.js package within the scripts.bundle.js file.
In an effort to resolve the issue, I added the script references to my angular-cli.json file as shown below:
"scripts": [
"../node_modules/jquery/dist/jquery.slim.min.js",
"../node_modules/popper.js/dist/esm/popper.min.js",
"../node_modules/bootstrap/dist/js/bootstrap.min.js",
"../node_modules/alertifyjs/build/alertify.min.js"
]
Despite following the necessary steps, the problem with popper continues to persist. I am seeking assistance in finding a solution to this perplexing situation.