Skip to content

ERROR: No matching export in "node_modules/@mantine/core/esm/index.mjs" for import "packSx" #472

Open

Description

@psm-solution-group

mantine-react-table version

v1.3.4

react & react-dom versions

latest

Describe the bug and the steps to reproduce it

I want to install mantine-react-table but got this error:

X [ERROR] No matching export in "node_modules/@mantine/core/esm/index.mjs" for import "packSx"

    node_modules/mantine-react-table/dist/esm/mantine-react-table.esm.js:7:237:
      7 │ ... Menu, Button, Switch, Radio, Checkbox, Flex, Progress, Pagination, Badge, MultiSelect, Autocomplete, packSx, Alert, Stack, Divider, Transition, RangeSlider, Popover, Indicator, Table, Modal, LoadingOverlay, P...
        ╵                                                                                                          ~~~~~~

C:\Users\emre\Desktop\psm\psm_frontend\node_modules\esbuild\lib\main.js:1651
  let error = new Error(text);
              ^

Error: Build failed with 1 error:
node_modules/mantine-react-table/dist/esm/mantine-react-table.esm.js:7:237: ERROR: No matching export in "node_modules/@mantine/core/esm/index.mjs" for import "packSx"
    at failureErrorWithLog (C:\Users\emre\Desktop\psm\psm_frontend\node_modules\esbuild\lib\main.js:1651:15)
    at C:\Users\emre\Desktop\psm\psm_frontend\node_modules\esbuild\lib\main.js:1059:25
    at C:\Users\emre\Desktop\psm\psm_frontend\node_modules\esbuild\lib\main.js:1527:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errors: [Getter/Setter],
  warnings: [Getter/Setter]
}

Minimal, Reproducible Example - (Optional, but Recommended)

.

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Activity

  1. RyanPearson commented on Feb 19, 2025

    @RyanPearson

    I'm experiencing the same error. Trying to copy the Editing CRUD example here. After using yarn to add the mantine-react-table package, I get the warning:

    warning "workspace-aggregator-26d7d061-4d25-4ea0-bbdd-3df120aff503 > hq-client > [email protected]" has unmet peer dependency "@emotion/react@>=11".
    warning "workspace-aggregator-26d7d061-4d25-4ea0-bbdd-3df120aff503 > hq-client > [email protected]" has incorrect peer dependency "@mantine/core@^6.0".
    warning "workspace-aggregator-26d7d061-4d25-4ea0-bbdd-3df120aff503 > hq-client > [email protected]" has incorrect peer dependency "@mantine/dates@^6.0".
    warning "workspace-aggregator-26d7d061-4d25-4ea0-bbdd-3df120aff503 > hq-client > [email protected]" has incorrect peer dependency "@mantine/hooks@^6.0".
    

    running yarn dev I get the same error (as original poster):

    [ERROR] No matching export in "../node_modules/@mantine/core/esm/index.mjs" for import "packSx"
    
        ../node_modules/mantine-react-table/dist/esm/mantine-react-table.esm.js:7:237:
          7 │ ...ss, Pagination, Badge, MultiSelect, Autocomplete, packSx, Alert, Stack, Divider, Transition, RangeSlider,...
            ╵                                                      ~~~~~~
    

    Node.js v22.11.0
    React 18.3.1
    mantine-react-table "^1.3.4"
    mantine/core "7.15.3"

    edit: @psm-solution-group looks like the @latest version v1.3.3 of mantine-react-table requires some outdated package dependences, so I've switched to the Beta v2.0.0-beta.9 and now my app at least compiles. I'm sure there will be other errors, but maybe this will help

  2. added
    bug
    V1
    on Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    V1bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions