question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does the latest version require React 16.8

See original GitHub issue

Do you want to request a feature or report a bug?

  • [x ] I found a bug
  • I want to propose a feature

What is the current behavior? I want to add ‘react-dropzone’ to our existing live project. After installing I followed the usage instructions. Since Hooks are only available on React 16.8, and our React version is 16.7 I used the Wrapper component option. When running “npm start” the following Error showed in the browser’s console:

Uncaught TypeError: Object(...) is not a function
    at useDropzone (index.js:502)
    at eval (index.js:170)

Here is a screenshot from the Sources: image

It seems React-Dropzone is dependent on React hooks, and therefor on React 16.8. It seems React 16.8 is a requirement of the latest version of React-Dropzone. But nowhere in the documentation does it mention it.

React v: 16.7 “react-dropzone”: “^10.0.4”,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
rolandjitsucommented, Mar 18, 2019

Will make an update in the coming days, thanks for pointing it out.

0reactions
rolandjitsucommented, Apr 16, 2019

@gupta-kartik see release notes for v10.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Versions - React
See our FAQ for information about our versioning policy and commitment to stability.
Read more >
React 16.8 - npm
React is a JavaScript library for building user interfaces.. Latest version: 18.2.0, last published: 6 months ago. Start using react in your ...
Read more >
React 16.8 now Released with React Hook Implementation
In recent news, one of the React developers revealed the launch of React 16.8. Dan Abramov, informed that this new React version will...
Read more >
What's new in React 16.8 | React New Features - Zeolearn
React 16.8 marks a major step forward in React and the way developers can implement function components and use React features. Hooks :...
Read more >
How To Update the React js project from 15.6 to 16.8?
You will have to install the latest version that you want to upgrade to by running npm install --save react@^16.8.0 react-dom@^16.8.0 or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found