You may encounter the following error when using Bootstrap popper with Angular : Bootstrap Uncaught SyntaxError: Unexpected token export
Solution
The problem is due to the Javascript import. Most certainly your imports looks like
1 2 |
"node_modules/jquery/dist/jquery.min.js", "node_modules/popper.js/dist/popper.min.js", |
You need to change the import to :
1 2 |
"node_modules/jquery/dist/jquery.slim.min.js", "node_modules/popper.js/dist/umd/popper.min.js", |
Note carefully node_modules/jquery/dist/jquery.slim.min.js and node_modules/popper.js/dist/umd/popper.min.js in the imports.