简体   繁体   English

获得与react-dom相关的错误

[英]Getting an error related to react-dom

I just updated my node and npm installations and now getting an error when I run my project. 我刚刚更新了我的节点和npm安装,现在运行我的项目时出现错误。 I am using "react": "^0.13.3" and "react-dom": "0.14.0-beta3" 我正在使用“反应”:“^ 0.13.3”和“react-dom”:“0.14.0-beta3”

   npm WARN unmet dependency /Users/hilarl/Desktop/client/node_modules/react-dom requires react@'^0.14.0-beta3' but will load
    npm WARN unmet dependency /Users/hilarl/Desktop/client/node_modules/react,
    npm WARN unmet dependency which is version 0.13.3

react-dom requires react@'^0.14.0-beta3'

Error: Cannot find module 'react/lib/ReactDOMServer'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/hilarl/Desktop/client/node_modules/react-dom/server.js:1:18)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Is there anyway to use react-dom with react 0.13.3? 无论如何使用react-dom与反应0.13.3? Thanks 谢谢

React 13.3 already has the DOM stuff in it. React 13.3已经有了DOM的东西。 It's just called React.DOM . 它叫做React.DOM In more recent versions, they've moved this out of the core -- in order to lighten it -- into the optional module. 在最近的版本中,他们已经将其从核心移出 - 为了减轻它 - 进入可选模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM