Angular 4. Unexpected token export
this is perfect working on angular4/6, i have tested it in my projects.
"../node_modules/popper.js/dist/umd/popper.js"
I found answer.
In ./.angular-cli.json
at the row scripts
change folder from:
"../node_modules/popper.js/dist/popper.js"
to this (if you use modern version of webpack):
"../node_modules/popper.js/dist/esm/popper.js"
else this:
"../node_modules/popper.js/dist/umd/popper.js"
Thanks fezVrasta