Skip to content

Build errors #2074

@igoriok1994

Description

@igoriok1994

Hi,

I'm using TerserPlugin. After building app I've got errors from react-data-grid component.

ERROR in ./node_modules/rdg.v7/lib/Cell.js 10:19
Module parse failed: Unexpected token (10:19)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. S
ee https://webpack.js.org/concepts#loaders
|     function handleCellClick() {
|         selectCell();
>         onRowClick?.(rowIdx, row, column);
|     }
|     function handleCellContextMenu() {
 @ ./node_modules/rdg.v7/lib/index.js 2:0-41 2:0-41
ERROR in ./node_modules/rdg.v7/lib/Row.js 15:128
Module parse failed: Unexpected token (15:128)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. S
ee https://webpack.js.org/concepts#loaders
|         event.dataTransfer.dropEffect = 'copy';
|     }
>     className = clsx('rdg-row', `rdg-row-${rowIdx % 2 === 0 ? 'even' : 'odd'}`, { 'rdg-row-selected': isRowSelected },
 rowClass?.(row), className);
|     // Regarding onDrop: the default in Firefox is to treat data in dataTransfer as a URL,
|     // and perform navigation on it, even if the data type used is 'text'.
 @ ./node_modules/rdg.v7/lib/index.js 3:0-39 3:0-39
ERROR in ./node_modules/rdg.v7/lib/DataGrid.js 69:23
Module parse failed: Unexpected token (69:23)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. S
ee https://webpack.js.org/concepts#loaders
|         - 2 // border width
|         - totalHeaderHeight
>         - (summaryRows?.length ?? 0) * rowHeight
|         - (totalColumnWidth > viewportWidth ? getScrollbarSize() : 0);
|     const [rowOverscanStartIdx, rowOverscanEndIdx] = getVerticalRangeToRender(clientHeight, rowHeight, scrollTop, rows
.length);
 @ ./node_modules/rdg.v7/lib/index.js 1:0-37 1:0-37

Last week everything was fine, but now after "NPM update" I have this error.
Help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions