Sage 8.x doesn’t support ES6 modules.
Using Bower overrides, you can pull in the compiled animejs file (similar to below) and disregard import statement from the animejs docs.
{
"name": "sage",
"homepage": "https://roots.io/sage/",
"authors": [
"Ben Word <ben@benword.com>"
],
"license": "MIT",
"private": true,
"dependencies": {
"bootstrap": "git://github.com/twbs/bootstrap.git#v4.0.0-beta",
"popper.js": "^1.12.3",
"animejs": "^2.2.0"
},
"overrides": {
"animejs": {
"main": [
"anime.min.js"
]
}
}
}