Comments (5)
@LukasTy, thank you for the information. However, we have been using the syntax (variable.?) throughout the project for quite some time, so I suspect the issue stems from something else. The example I provided earlier is just one of many errors originating from the @mui package. I attempted to resolve these by upgrading to webpack 5 and rebuilding the project, which initially seemed to eliminate the errors. Unfortunately, this upgrade led to new issues related to webpack 5 because of other plugins. So we can close this since this is working with webpack 5
from mui-x.
@nethusan, could you check #12612 and the suggested workarounds if you are unable to update to webpack 5?
This issue looks a duplicate of that one, if you agree, feel free to close it. ๐
from mui-x.
@LukasTy I tried that but does not resolve anything, same issue,
this my test from webpack.config
rules: [
{
test: /\.[jt]sx?$/,
exclude: [
{
test: path.resolve(__dirname, 'node_modules'),
exclude: [
path.resolve(__dirname, 'node_modules/@mui/x-data-grid'),
path.resolve(__dirname, 'node_modules/@mui/x-license'),
],
},
],
},
{
test: /\.js$|jsx/,
include: path.resolve(__dirname, '../src'),
loader: 'babel-loader',
exclude: [
{
test: path.resolve(__dirname, 'node_modules'),
exclude: [
path.resolve(__dirname, 'node_modules/@mui/x-data-grid'),
path.resolve(__dirname, 'node_modules/@mui/x-license'),
],
},
],
options: {
cacheDirectory: true,
cacheCompression: false,
sourceMaps: true,
plugins: [
require.resolve('react-refresh/babel'),
].filter(Boolean),
},
},
{
test: /\.(scss|css)$/,
use: [
'style-loader',
'css-loader',
{
loader: "sass-loader",
options: {
implementation: require("sass"),
},
},
],
exclude: /node_modules/,
},
{
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
loader: 'url-loader',
options: {
limit: 10000,
},
},
],
Maybe I need to mention that I can see lot more error but similar error message.
from mui-x.
@nethusan I don't see you using the @babel/preset-env
, which would include the necessary transforms (i.e. the optional chaining).
Please check this live example for more details.
If it doesn't help, please provide a complete minimal reproduction example.
In any case, I'd strongly advise firstly updating your development setup, then going for the @mui
package bumping.
If you add these workarounds, then it's just additional technical debt that can be avoided by switching priorities. ๐
No offense, but isn't it a bit strange having a development setup that doesn't work with features, that have already been live in all major browsers for 4+ years? ๐
from mui-x.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
@nethusan: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.
from mui-x.
Related Issues (20)
- [charts] Support for ordinal axes HOT 1
- [data grid] Migrating Materialย UI v4 to v5 breaks some of the features HOT 3
- [data grid] Filter headers need adjustment for `density="compact"` HOT 1
- [data grid] Why does hitting the 'd' key on the export menu on datagrid navigate menu items? HOT 8
- [data grid] Full featured CRUD example issues HOT 1
- [data grid] Missing `cellMouseLeave` in `apiRef.subscribeEvent` HOT 6
- [data grid] how to update column header titles when switching language without reseting data-grid state HOT 11
- [data grid] issue with using sx in GridToolbarColumnsButton HOT 3
- [data grid] What is the best way to modify the toolbar menus ? HOT 3
- [data grid] Stale Cache for filter items > 5 HOT 1
- [data grid] All grouped rows collapses when rows updating (by state, not by updateRows) HOT 2
- [fields] Handle form submit on `Enter` click with "v7" fields
- [charts] Transparent fills in area line charts overlap causing color mixing issues HOT 1
- [DateRangePicker] Stop forcing initial focus on the first section
- [data grid] slotProps ColumnsManagement is not working HOT 5
- [data grid] Noisy warning, Accessing element.ref was removed in React 19 HOT 3
- [data grid] Detail panel for focused row is "sticky" when scrolling HOT 4
- [charts] Support multiple values for border radius on bar charts
- [pickers] Add a default AM or PM to the time picker HOT 3
- [data grid] Custom Columns: How to improve usability of the Date Picker in a narrow column HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.