Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected identifier (_slicedToArray) #1

Open
ksuess opened this issue Oct 29, 2019 · 1 comment
Open

SyntaxError: Unexpected identifier (_slicedToArray) #1

ksuess opened this issue Oct 29, 2019 · 1 comment

Comments

@ksuess
Copy link

ksuess commented Oct 29, 2019

I get a SyntaxError

import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
       ^^^^^^^^^^^^^^

SyntaxError: Unexpected identifier

I use it like this:

import ReactAnime from 'react-animejs';
const {Anime, stagger} = ReactAnime;

class AnimatedBox extends Component {
  render() {
    return (
        <Anime
          initial={[
            {
              targets: "#Box",
              translateX: 200,
              easing: "linear"
            }
          ]}
        >
            <div id="Box"
                 style={{ height: 50, width: 50, background: "#dd5" }} />
        </Anime>
    );
  }
}

export default AnimatedBox;

Any hint?

@shamoons
Copy link

Same issue - not sure how to solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants