How to fix popper.js in bootstrap 4 gives SyntaxError Unexpected token export
By Tan Lee Published on Feb 16, 2024 1.14K
This post shows you how to fix 'popper.js in bootstrap 4 gives SyntaxError Unexpected token export' in javascript.
For example
<script src="libs/popper.js/dist/popper.js"></script>
Uncaught syntaxError: Unexpected token export
To solve the problem, you can add bootstrap.bundle.min.js and remove popper.js in your html file.
Because bootstrap.bundle.min.js included popper.js
Categories
Popular Posts
Structured Data using FoxLearn.JsonLd
Jun 20, 2025
Implement security headers for an ASP.NET Core
Jun 24, 2025
10 Common Mistakes ASP.NET Developers Should Avoid
Dec 16, 2024
Star Admin Dashboard Template
Nov 14, 2024
Monster Admin Template
Nov 14, 2024