Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 2245

Bumb react from 16.8 to react 17

$
0
0

Whenever i try to use the stepper from material UI it gives me this error:

Compiled with problems:
×
ERROR in …/…/…/…/…/…/node_modules/@emotion/react/dist/emotion-element-7a1343fa.browser.development.esm.js 1:0-31
Module not found: Error: Can’t resolve ‘react’ in ‘C:\Users\MYNAME\node_modules@emotion\react\dist’

… and many more errors like the one above.

Is there any way to install Material UI on DHIS app plattform. The command in the bottom for @mui/material needs React version 17 and as far as i can tell DHIS app plattform uses 16.8. Can one simply bump it up in the package.json in the d2/shell folder: Like the picture suggests, or would that break something

yarn add @mui/material @emotion/react @emotion/styled

Any help here would be greatly appreciated!

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2245

Trending Articles