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

Update peer dependency to React so it can be used with latest version #275

Closed
Arsenalist opened this issue Mar 5, 2023 · 1 comment
Closed

Comments

@Arsenalist
Copy link

There's a peer dependency error when building with React 18>. Is it possible to upgrade the peer dependency so that this can be used with the latest version of React?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: punchline@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.5.0 || ^17.0.0" from react-tag-autocomplete@6.3.0

Currently in package.json we have this listed:

  "peerDependencies": {
    "prop-types": "^15.5.0",
    "react": "^16.5.0 || ^17.0.0",
    "react-dom": "^16.5.0 || ^17.0.0"
  },
@i-like-robots
Copy link
Owner

Thanks for raising this issue. I recommend using the next major version of the component instead - which is currently at release candidate stage - as this has been built entirely with React v18 in mind.

Closing as a dupe of #267

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