M
M
Maxim Korolsky2016-06-16 16:29:35
Node.js
Maxim Korolsky, 2016-06-16 16:29:35

How can I find out which module is causing the error?

warning.js:45Warning: React.findDOMNode is deprecated. Please use ReactDOM.findDOMNode from require('react-dom') instead.

It seems that I searched for it, tried to delete it, it still hangs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2016-06-16
@SuperPosan

How to find out?
Search the project for "React.findDOMNode", but I suspect it's somewhere in your topmost component. Or just search for "findDOMNode", because somewhere it can be connected like this: import React, {findDOMNode} from 'react'
a) npm install react-dom
b) wherever you use React.findDOMNode replace with findDOMNode, after importing in each file: import { findDOMNode } from 'react-dom'
The essence of the error is that the findDOMNode function has moved to a separate package, and you use it from the 'react' package.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question