Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Donate Static
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Web
  • Donate Static
  • Issues
  • #91
Closed
Open
Issue created Oct 04, 2022 by kezzle@kezOwner

no longer possible to install npm deps

the repo has entered dependency hell, where npm can't resolve a set of packages that satisfy all dependencies. specifically peer dependencies

❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: react-stripe-elements@6.1.2
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   dev react@"^17.0.2" from the root project
npm ERR!   peer react@"17.0.2" from react-dom@17.0.2
npm ERR!   node_modules/react-dom
npm ERR!     dev react-dom@"^17.0.2" from the root project
npm ERR!   1 more (react-popper)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.5.4 || ^16.0.0-0" from react-stripe-elements@6.1.2
npm ERR! node_modules/react-stripe-elements
npm ERR!   dev react-stripe-elements@"^6.1.2" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peer react@"^15.5.4 || ^16.0.0-0" from react-stripe-elements@6.1.2
npm ERR!   node_modules/react-stripe-elements
npm ERR!     dev react-stripe-elements@"^6.1.2" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

running npm install --force does fix the conflict and everything still seems to work correctly, but i'll need to submit a test donation with stripe to make sure.

this all seems like it's stemming from the old react-stripe-elements. unfortunately, that library has changed so much that we would have to re-architect all the javascript, so we can't just update the library.

this also breaks CI builds, because lektor b -f npm can't install the npm dependencies.

committing the updated package.lock doesn't fix this.

Assignee
Assign to
Time tracking