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

Development environment #1269

Open
hizmarck opened this issue Jan 3, 2025 · 0 comments
Open

Development environment #1269

hizmarck opened this issue Jan 3, 2025 · 0 comments

Comments

@hizmarck
Copy link

hizmarck commented Jan 3, 2025

I want to start contributing to the project, so I followed this: https://github.com/htmlburger/carbon-fields/blob/master/CONTRIBUTING.md

Version

  • Carbon Fields: 3.6.5
  • WordPress: 6.7.1
  • PHP: 8.2

Expected Behavior

Please enter the expected behavior here
Following the steeps on the guide, start contributing.

Actual Behavior

Please enter the actual, unexpected behavior here
Error in the installation process.

I used php 8.2 and nodejs 20.14, 

I got this after npm install:

npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"^18.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.8.0 || ^17.0.0" from [email protected]
npm error node_modules/react-select
npm error   react-select@"^3.1.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:

Container definition

// Please add your entire container defintion here so issues
// are easy to reproduce

Steps to Reproduce the Problem

Comments

I tried with nodejs 18 and 16 following some suggestions, but I couldn't avoid the errors on installation.
I also tried npm install --legacy-peer-deps, but when I used the npm run build I got other errors.

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

1 participant