Skip to content

Using this module alongside create-react-app #1

@candacerogue

Description

@candacerogue

./node_modules/react-radial-menu/src/js/components/radial-menu.react.js
Module parse failed: Unexpected token (79:15)
You may need an appropriate loader to handle this file type.
| left = (50 - distance * Math.cos(-0.5 * Math.PI - (2Math.PIi)/length)).toFixed(8) + "%;"
| top= (50 + distance * Math.sin(-0.5 * Math.PI - (2Math.PIi)/length)).toFixed(8) + "%;";
| result.push(<RadialItem key={i} radius = {radius} href = {item.href}
| className="children" left={left} top={top} image={item.image}>{item.text});
|

Trying to avoid ejecting scripts, because I'm not sure what the other repercussions might be with everything being so hidden in create-react-app.

Any suggestions as to how I could fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions