GithubHelp home page GithubHelp logo

Comments (5)

antfu avatar antfu commented on August 28, 2024

We have a few discussions (#7 #9 #15) about this and peerDependencies seem to be required by yarn2. What's the problem you are running into with npm v7?

from vue-demi.

AMontagu avatar AMontagu commented on August 28, 2024

I had the same issue with npm 7.

FIX

"dependencies": {
  "vue-demi": "^0.6.2",
},
"peerDependencies": {
  "vue": "^2.6.0 || >=3.0.0-rc.0",
  "@vue/composition-api": "^1.0.0-rc.2"
},
"peerDependenciesMeta": {
  "@vue/composition-api": {
    "optional": true
  }
},
"devDependencies": {
  "vue": "^3.0.0"
},

Info on error

Docker image: circleci/node:latest
command: npm install

output:

#!/bin/bash -eo pipefail
npm install
[..................] - idealTree:project: sill idealTree buildDeps[[K..................] - idealTree:project: sill idealTree buildDeps[[K..................] - idealTree:project: sill idealTree buildDeps[[K..................] | idealTree:project: sill idealTree buildDepsnpm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR!   dev vue@"^3.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vue@">= 2.5 < 3" from @vue/[email protected]
npm ERR! node_modules/@vue/composition-api
npm ERR!   peer @vue/composition-api@"^1.0.0-beta.12" 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.
npm ERR! 
npm ERR! See /home/circleci/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/circleci/.npm/_logs/2021-02-26T17_05_53_678Z-debug.log


Exited with code exit status 1
CircleCI received exit code 1

The circle ci file:

version: 2
jobs:
  test:
    docker:
      - image: circleci/node:latest
    steps:
      - checkout
      # TODO

  release:
    docker:
      - image: circleci/node:latest
    steps:
      - checkout
      - run: npm install
      - run: npm run build
      - run: npx semantic-release

workflows:
  version: 2
  test_and_release:
    # Run the test jobs first, then the release only when all the test jobs are successful
    jobs:
      - test
      - release:
          requires:
            - test

from vue-demi.

antfu avatar antfu commented on August 28, 2024

@AMontagu This looks good to me, would you like to send a quick PR for it? Thanks

"peerDependenciesMeta": {
  "@vue/composition-api": {
    "optional": true
  }
},

EDIT: Done. Thanks!

from vue-demi.

AMontagu avatar AMontagu commented on August 28, 2024

Sorry for the late answer it was Friday night just wake up now.

Are you okay to add in the read me the line for vue in devDependencies ? (I can do it this time haha) To avoid having my other issue.

from vue-demi.

antfu avatar antfu commented on August 28, 2024

Alright, please go ahead. Thanks.

from vue-demi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.