contentlayerdev / contentlayerdev/website

Upgrade to Node v18 / npm v8

Open
#50 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
132
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,

When I try to `npm install` after fresh clone, I get the following error:

```console
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: contentlayer-docs@0.1.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR! react@"18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8 || ^17.0" from @radix-ui/react-dropdown-menu@0.1.6
npm ERR! node_modules/@radix-ui/react-dropdown-menu
npm ERR! @radix-ui/react-dropdown-menu@"^0.1.6" from the root project
```

I'm using `node v18.1.0 (npm v8.8.0)`

Does anyone has the same problem?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported failure with a fresh clone using Node v18.1.0 and npm v8.8.0, then inspect the project’s dependency declarations for the React 18 and @radix-ui/react-dropdown-menu versions. Done means a fresh npm install resolves the dependency tree without the reported ERESOLVE error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, react
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.