./src/index.js 找不到模块:无法解析“react-dom/client”在“c:\users\.....”中
I已经尝试以多种方式解决此错误,我还将 React 和 React DOM 更新到版本 “反应”:“^18.0.0-rc.0”, “react-dom”:“^18.0.0-rc.0”。我还尝试删除节点模块并重新安装节点模块。等待解决方案。也无法理解这些 Chokidar 错误。
Above is the code of the index.js file, below is the error shown in this file
I have tried solving this error in many ways, I have also updated the React and React DOM to version
"react": "^18.0.0-rc.0",
"react-dom": "^18.0.0-rc.0". I also tried deleting the node modules and re-installing node modules. Waiting for solutions. Also not able to understand these Chokidar errors.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将 React 和 React dom 安装到最新稳定的 v18 版本
此外,您的控制台中存在有关文件被锁定的错误。您是否在客户端仍在运行时更新了依赖项?
Try installing both react and react dom to latest stable v18 builds
Additionally there's an error in your console about files being locked. Did you update the dependencies while the client was still running?