Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

react deprecated api used ? #16

Closed
ostryhub opened this issue Jun 13, 2017 · 3 comments
Closed

react deprecated api used ? #16

ostryhub opened this issue Jun 13, 2017 · 3 comments

Comments

@ostryhub
Copy link

Hi, thanks for the project !

After properly compiling and running npm run dev in the browser the app doesn't appear.

The console states:

[HMR] Waiting for update signal from WDS...
lowPriorityWarning.js?d93c:40 Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class
printWarning @ lowPriorityWarning.js?d93c:40
lowPriorityWarning @ lowPriorityWarning.js?d93c:59
get @ React.js?24ef:108
whyDidYouUpdate @ index.js?3f48:35
(anonymous) @ index.jsx?1f8a:18
(anonymous) @ client.js:3799
webpack_require @ client.js:660
fn @ client.js:86
(anonymous) @ client.js:7263
webpack_require @ client.js:660
(anonymous) @ client.js:709
(anonymous) @ client.js:712
index.js?3f48:41 Uncaught TypeError: Cannot set property createClass of # which has only a getter
at whyDidYouUpdate (eval at (client.js:7240), :41:23)
at eval (eval at (client.js:3799), :37:40)
at Object. (client.js:3799)
at webpack_require (client.js:660)
at fn (client.js:86)
at Object. (client.js:7263)
at webpack_require (client.js:660)
at client.js:709
at client.js:712
whyDidYouUpdate @ index.js?3f48:41
(anonymous) @ index.jsx?1f8a:18
(anonymous) @ client.js:3799
webpack_require @ client.js:660
fn @ client.js:86
(anonymous) @ client.js:7263
webpack_require @ client.js:660
(anonymous) @ client.js:709
(anonymous) @ client.js:712
client.js?102b:67 [HMR] connected

@Metnew
Copy link
Owner

Metnew commented Jun 14, 2017

Hi, thanks for your issue, I'll check it. Personally, I've never got this error

@Metnew
Copy link
Owner

Metnew commented Jun 14, 2017

Issue was caused by new React 15.6 and whydidyouUpdate. I commented this module in d210f59, so right now it's fixed.

@Metnew
Copy link
Owner

Metnew commented Jun 14, 2017

Hope that whydidyouupdate will be updated for React 15.6

@Metnew Metnew closed this as completed Jun 14, 2017
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

2 participants