Railway Deployment #06c678 fix: add root .npmrc with legacy-peer-deps#330
Open
railway-app[bot] wants to merge 1 commit into
Open
Railway Deployment #06c678 fix: add root .npmrc with legacy-peer-deps#330railway-app[bot] wants to merge 1 commit into
railway-app[bot] wants to merge 1 commit into
Conversation
✅ Deploy Preview for quotevote canceled.
|
Author
|
🚅 Deployed to the quotevote-monorepo-pr-330 environment in profound-optimism
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The quotevote-api service fails at BUILD_IMAGE because Nixpacks auto-detects the install command as
npm i, which fails with an ERESOLVE peer dependency conflict:@livechat/[email protected]requiresreact@^16.3.0but the project uses[email protected]. npm 7+ enforces strict peer dependency resolution by default, and no root.npmrcexisted to override this behavior.Solution
Added a root
.npmrcfile withlegacy-peer-deps=true, which instructs npm to use legacy peer dependency resolution whenever it runs in the project root. This matches the--legacy-peer-depsflag already used in the project'sinstall:allscript and ensures Nixpacks' auto-detectednpm icommand succeeds without any dashboard config changes.Changes
.npmrcContext
e65742dGenerated by Railway