nhn / tui.grid

🍞🔡 The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.42k stars 394 forks source link

v4.21.6 babel parsing error #1810

Open amoneynous opened 1 year ago

amoneynous commented 1 year ago

Describe the bug When use v4.21.6 @toast-ui/react-grid on CRA, babel parsing error comes up. downgrading to v.4.21.5, working great. To Reproduce Steps to reproduce the behavior: npx create-react-app cra cd cra yarn add @toast-ui/react-grid copy the example on the site as below(https://github.com/nhn/tui.grid/tree/master/packages/toast-ui.react-grid)

App.js import 'tui-grid/dist/tui-grid.css'; import Grid from '@toast-ui/react-grid'; const data = [ {id: 1, name: 'Editor'}, {id: 2, name: 'Grid'}, {id: 3, name: 'Chart'} ];

const columns = [ {name: 'id', header: 'ID'}, {name: 'name', header: 'Name'} ];

const MyComponent = () => ( <Grid data={data} columns={columns} rowHeight={25} bodyHeight={100} heightResizable={true} rowHeaders={['rowNum']} /> );

const App .....

Expected behavior working properly.