Skip to content

Issue with React.Context #10147

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

Open
hasdfa opened this issue May 1, 2025 · 0 comments
Open

Issue with React.Context #10147

hasdfa opened this issue May 1, 2025 · 0 comments

Comments

@hasdfa
Copy link

hasdfa commented May 1, 2025

🐛 bug report

Parcel config

Default config

🤔 Expected Behavior

No runtime errors as for vite.js

😯 Current Behavior

When building the project with @mui/x-data-grid-pro it seems an issue with context sharing and the React Context could not be found.
Example (not working with ParcelJS): https://codesandbox.io/p/live/525f2e04-284d-4794-9dbd-c0b4484db8e6
Example (working with Vite.js): https://codesandbox.io/embed/x6z7jm?module=/src/Demo.tsx

💁 Possible Solution

No idea

🔦 Context

It happens only with @mui/x-data-grid@^8.0.0, with v7 it works okay

💻 Code Sample

https://codesandbox.io/p/live/525f2e04-284d-4794-9dbd-c0b4484db8e6

🌍 Your Environment

  System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
  Binaries:
    Node: 20.12.0 - /usr/local/bin/node
    npm: 10.5.0 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/share/npm-global/bin/pnpm
  Browsers:
    Chrome: Not Found
  npmPackages:
    @emotion/react: latest => 11.14.0 
    @emotion/styled: latest => 11.14.0 
    @mui/core-downloads-tracker:  7.0.2 
    @mui/icons-material: latest => 7.0.2 
    @mui/material: latest => 7.0.2 
    @mui/private-theming:  7.0.2 
    @mui/styled-engine:  7.0.2 
    @mui/system:  7.0.2 
    @mui/types:  7.4.1 
    @mui/utils:  7.0.2 
    @mui/x-data-grid:  8.1.0 
    @mui/x-data-grid-generator: ^8.0.0 => 8.1.0 
    @mui/x-data-grid-premium: ^8.0.0 => 8.1.0 
    @mui/x-data-grid-pro:  8.1.0 
    @mui/x-internals:  8.0.0 
    @mui/x-license:  8.0.0 
    @mui/x-telemetry:  8.0.0 
    @types/react: latest => 19.1.2 
    react: latest => 19.1.0 
    react-dom: latest => 19.1.0 
    typescript: latest => 5.8.3 
@hasdfa hasdfa changed the title Issue with Issue with React.Context May 1, 2025
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

1 participant