i install the ui @next stuff and I have this error in node modules.
ERROR in [at-loader] ./node_modules/material-ui/Avatar/Avatar.d.ts:8:15 11:31:52 web.1 | TS2315: Type 'ReactType' is not generic. 11:31:52 web.1 | ERROR in [at-loader] ./node_modules/material-ui/Button/Button.d.ts:7:15 11:31:52 web.1 | TS2315: Type 'ReactType' is not generic. 11:31:52 web.1 | ERROR in [at-loader] ./node_modules/material-ui/ButtonBase/ButtonBase.d.ts:10:15 11:31:52 web.1 | webpack: Failed to compile.
Do it npm update @types/react. The latest version of ReactType is generic
npm update @types/react
I fixed this by deleting the folder node_modulesand mine yarn.lock, and then reinstalling the modules with yarn(or npm i).
node_modules
yarn.lock
yarn
npm i
After reinstalling, I got a newer version of the reaction and @ types / response, which fixes this problem.
Source: https://habr.com/ru/post/1691871/More articles:Missing Buttons from AirPrint - iosDisable developper to disable any TSLint rule - javascriptHow to pass send function to header component? - react-nativeRails with turbolinks Javascript correctly loads only when the page is refreshed - javascriptXamarin Test Recorder does not work on a real device - xamarin.androidПоказать диалог блокировки экрана на Android O - androidHow to remove shadow under UINavigationBar using UISearchController - iosThe image does not load and is saved in local storage using the Picasso library - androidVimeo: domain-level privacy: how to handle a video link if someone uses a verification web page and change the video ID - vimeoIllegalArgumentException: org.chromium.components.minidump_uploader.CrashFileManager - androidAll Articles