Remove unused dependencies causing React 18 peer conflict #5

Merged
Copilot merged 2 commits from copilot/fix-docker-compose-error into main 2025-11-04 12:11:07 -06:00
Copilot commented 2025-11-04 11:22:27 -06:00 (Migrated from github.com)

npm install fails during Docker build due to react-mde@11.5.0 requiring React 17 while the project uses React 18.

Changes

  • Removed react-mde and react-quill from frontend/package.json - neither dependency is imported or used in the codebase
  • The page editor uses a plain <textarea> element, not a markdown editor library

The peer dependency conflict is resolved and Docker Compose builds succeed.

Original prompt

This section details on the original issue you should resolve

<issue_title>Error with docker Compose v2</issue_title>
<issue_description>Here is the log from running docker compose up -d

=> ERROR [frontend build 4/6] RUN npm install 1.4s

[frontend build 4/6] RUN npm install:
1.325 npm error code ERESOLVE
1.325 npm error ERESOLVE could not resolve
1.325 npm error
1.325 npm error While resolving: react-mde@11.5.0
1.325 npm error Found: react@18.3.1
1.325 npm error node_modules/react
1.325 npm error react@"^18.2.0" from the root project
1.325 npm error peer react@"^16.5.1 || ^17.0.0 || ^18.0.0" from lucide-react@0.294.0
1.325 npm error node_modules/lucide-react
1.325 npm error lucide-react@"^0.294.0" from the root project
1.325 npm error 5 more (react-dom, react-markdown, react-quill, react-router, react-router-dom)
1.325 npm error
1.325 npm error Could not resolve dependency:
1.325 npm error peer react@"^17.0.0" from react-mde@11.5.0
1.325 npm error node_modules/react-mde
1.325 npm error react-mde@"^11.5.0" from the root project
1.325 npm error
1.325 npm error Conflicting peer dependency: react@17.0.2
1.325 npm error node_modules/react
1.325 npm error peer react@"^17.0.0" from react-mde@11.5.0
1.325 npm error node_modules/react-mde
1.325 npm error react-mde@"^11.5.0" from the root project
1.325 npm error
1.325 npm error Fix the upstream dependency conflict, or retry
1.325 npm error this command with --force or --legacy-peer-deps
1.325 npm error to accept an incorrect (and potentially broken) dependency resolution.
1.325 npm error
1.325 npm error
1.325 npm error For a full report see:
1.325 npm error /root/.npm/_logs/2025-11-04T17_21_05_623Z-eresolve-report.txt
1.328 npm notice
1.328 npm notice New major version of npm available! 10.8.2 -> 11.6.2
1.328 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.2
1.328 npm notice To update run: npm install -g npm@11.6.2
1.328 npm notice
1.328 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-11-04T17_21_05_623Z-debug-0.log


failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

`npm install` fails during Docker build due to `react-mde@11.5.0` requiring React 17 while the project uses React 18. ## Changes - Removed `react-mde` and `react-quill` from `frontend/package.json` - neither dependency is imported or used in the codebase - The page editor uses a plain `<textarea>` element, not a markdown editor library The peer dependency conflict is resolved and Docker Compose builds succeed. <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Error with docker Compose v2</issue_title> > <issue_description>Here is the log from running `docker compose up -d` > > => ERROR [frontend build 4/6] RUN npm install 1.4s > ------ > > [frontend build 4/6] RUN npm install: > 1.325 npm error code ERESOLVE > 1.325 npm error ERESOLVE could not resolve > 1.325 npm error > 1.325 npm error While resolving: react-mde@11.5.0 > 1.325 npm error Found: react@18.3.1 > 1.325 npm error node_modules/react > 1.325 npm error react@"^18.2.0" from the root project > 1.325 npm error peer react@"^16.5.1 || ^17.0.0 || ^18.0.0" from lucide-react@0.294.0 > 1.325 npm error node_modules/lucide-react > 1.325 npm error lucide-react@"^0.294.0" from the root project > 1.325 npm error 5 more (react-dom, react-markdown, react-quill, react-router, react-router-dom) > 1.325 npm error > 1.325 npm error Could not resolve dependency: > 1.325 npm error peer react@"^17.0.0" from react-mde@11.5.0 > 1.325 npm error node_modules/react-mde > 1.325 npm error react-mde@"^11.5.0" from the root project > 1.325 npm error > 1.325 npm error Conflicting peer dependency: react@17.0.2 > 1.325 npm error node_modules/react > 1.325 npm error peer react@"^17.0.0" from react-mde@11.5.0 > 1.325 npm error node_modules/react-mde > 1.325 npm error react-mde@"^11.5.0" from the root project > 1.325 npm error > 1.325 npm error Fix the upstream dependency conflict, or retry > 1.325 npm error this command with --force or --legacy-peer-deps > 1.325 npm error to accept an incorrect (and potentially broken) dependency resolution. > 1.325 npm error > 1.325 npm error > 1.325 npm error For a full report see: > 1.325 npm error /root/.npm/_logs/2025-11-04T17_21_05_623Z-eresolve-report.txt > 1.328 npm notice > 1.328 npm notice New major version of npm available! 10.8.2 -> 11.6.2 > 1.328 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.2 > 1.328 npm notice To update run: npm install -g npm@11.6.2 > 1.328 npm notice > 1.328 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-11-04T17_21_05_623Z-debug-0.log > ------ > failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1</issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> - Fixes SluberskiHomeLab/noodlenook#4 <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
SluberskiHomeLab (Migrated from github.com) reviewed 2025-11-04 11:22:27 -06:00
Sign in to join this conversation.
No description provided.