DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.07k stars 376 forks source link

Invalid transform with v4.0.0 #3602

Closed DavidHenri008 closed 1 year ago

DavidHenri008 commented 1 year ago

Is there an existing issue for this?

I'm using ...

React Grid

Current Behaviour

There is an error when building my app that says it cannot resolve module "@mui/material/node/SOMETHING".

Module not found: Error: Can't resolve '@mui/material/node/Popover/index.js' in 'C:\Git\web-envysion\node_modules\@devexpress\dx-react-grid-material-ui\dist'

This error seems to be due to the newly added babel transform

 ["transform-rename-import", {
      "original": "^@mui\\/material\\/(.*)$",
      "replacement": "@mui/material/node/$1/index.js"
    }]

The @mui/material package has no folder named node...

Expected Behaviour

In version v3.0.6 everything was working fine.

Steps to Reproduce

No response

Environment

krisgerhard commented 1 year ago

Also var VisibilityOff = _interopDefault(require('@mui/icons-material/VisibilityOff'));

@mui/icons-material imports are not transformed at all.

Nathan7934 commented 1 year ago

I'm also having this issue. Makes the component unusable for me, which is a shame since it's exactly what I need.

Edit: Everything builds properly for me when I manually install the older version indicated by the original poster (I'm using the scheduler): npm install @devexpress/dx-react-core@3.0.6 npm install @devexpress/dx-react-scheduler@3.0.6 npm install @devexpress/dx-react-scheduler-material-ui@3.0.6