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

Compile error #363

Closed
lyihongl opened this issue Mar 18, 2020 · 5 comments
Closed

Compile error #363

lyihongl opened this issue Mar 18, 2020 · 5 comments

Comments

@lyihongl
Copy link

Describe the bug
No idea why there is a syntax error here.

To Reproduce
Steps to reproduce the behavior:

function Test(){
const data = {
  lanes: [
    {
      id: 'lane1',
      title: 'Planned Tasks',
      label: '2/2',
      cards: [
        {id: 'Card1', title: 'Write Blog', description: 'Can AI make memes', label: '30 mins', draggable: false},
        {id: 'Card2', title: 'Pay Rent', description: 'Transfer via NEFT', label: '5 mins', metadata: {sha: 'be312a1'}}
      ]
    },
    {
      id: 'lane2',
      title: 'Completed',
      label: '0/0',
      cards: []
    }
  ]
}
return(
    <div>
      <Board data={data} />
    </div>
  );
}

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Capture

Desktop (please complete the following information):

  • OS: Xubuntu (Ubuntu 18.04.2 LTS base)
  • Browser: Chrome Version 80.0.3987.132 (Official Build) (64-bit)

Additional context
I ran the install command, and just tried the basic example. Not sure why there is a syntax error as everything looks in order. Sorry if this is dumb I'm pretty new to react.

@jprosevear
Copy link

Likely a duplicate of #359

@ChenMorSays
Copy link

Experiencing this problem too. Exploring a solution.

@jprosevear
Copy link

The workaround is to import from react-trello/dist

I have a PR in #360

@ChenMorSays
Copy link

You're a genius! Thank you.

@rcdexta
Copy link
Owner

rcdexta commented Apr 4, 2020

Sorry about the late turnaround on this one. v2.2.5 should fix the direct root cause.

@rcdexta rcdexta closed this as completed Apr 4, 2020
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

4 participants