Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element ref was specified as a string (input) but no owner was set. You may have multiple copies of React loaded #656

Closed
aflext opened this issue Nov 16, 2017 · 2 comments

Comments

@aflext
Copy link

aflext commented Nov 16, 2017

Input 调用组件出错。由于旧版本在mac下编译出现问题,导致element-react/dist/npm/es5中的require没有被编译,找不到报错。所以升级了react(^16.1.1)、react-dom(16.1.1)、element-react(1.4.1),跑起来后,浏览器报错。

image

"webpack": "^2.6.0"
"babel-polyfill": "^6.23.0",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.0",
node: v9.2.0

#626

@aflext
Copy link
Author

aflext commented Nov 17, 2017

恢复 React和React-dom的版本到 16.0.0解决了

@aflext aflext closed this as completed Nov 17, 2017
@claychen6
Copy link

请教,我也遇到这个错误了,到底是那点不兼容造成的。
Element ref was specified as a string (submenu-title) but no owner was set. react^16.2.0 react-dom^16.2.0。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants