Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
98
rated 0 times [  100] [ 2]  / answers: 1 / hits: 5881  / 3 Years ago, mon, september 27, 2021, 12:00:00

I am trying to import 'GridActionsCellItem' from '@mui/x-data-grid' as:


import { GridActionsCellItem } from '@mui/x-data-grid';

But it shows error as:


Attempted import error: 'GridActionsCellItem' is not exported from '@mui/x-data-grid'.

I am copying the official documentation code from here.


Can anyone help me with this?


More From » reactjs

 Answers
23

I solved this problem by upgrading my '@mui/x-data-grid' from 4.4.to '5.0.0-beta.2'.
Just replace the version of your @mui/x-data-grid package in your package.json with ^5.0.0-beta.2 and it should work.


[#820] Wednesday, September 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mackennamelissac

Total Points: 110
Total Questions: 118
Total Answers: 103

Location: Sweden
Member since Sun, Jan 16, 2022
2 Years ago
mackennamelissac questions
Thu, Jun 3, 21, 00:00, 3 Years ago
Tue, Mar 23, 21, 00:00, 3 Years ago
Sun, Dec 27, 20, 00:00, 3 Years ago
;