TypeError: Cannot read properties of null (reading 'preset')
时间: 2023-08-25 20:11:32 浏览: 188
根据引用中提供的信息,出现TypeError: Cannot read properties of null (reading 'preset')的问题可能是由于浏览器安装了React-DevTools扩展程序导致的。解决这个问题的方法是进入项目中找到文件 /node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js,并进行注释操作,然后重新运行npm start命令。这样既可以解决报错问题,同时也可以继续使用React-DevTools扩展程序。<em>1</em>
#### 引用[.reference_title]
- *1* [React踩坑日记:React启动后报错TypeError: Cannot read properties of undefined (reading ‘forEach‘)](https://blog.csdn.net/weixin_44238688/article/details/120907026)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文