Skip to content
This repository has been archived by the owner on Nov 4, 2018. It is now read-only.

打包单独的 antd 用 script 的方式引入后,报错 #46

Closed
sun-sheng opened this issue May 12, 2016 · 1 comment
Closed

打包单独的 antd 用 script 的方式引入后,报错 #46

sun-sheng opened this issue May 12, 2016 · 1 comment

Comments

@sun-sheng
Copy link

报错:
react.js:18354 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs.
警告:(下面的警告出现多次)
react.js:18798 Warning: getDefaultProps is only used on classic React.createClass definitions. Use a static property named defaultProps instead
react.js:18798 Warning: getInitialState was defined on Dropdown, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?


使用webpack import 的方式,不会报错和警告

@sun-sheng
Copy link
Author

sun-sheng commented May 12, 2016

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

No branches or pull requests

1 participant