Comments (5)
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.
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.
@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.
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.
Alright, please go ahead. Thanks.
from vue-demi.
Related Issues (20)
- Remove peerDependencies
- Can't use Vue 2 library in Vue 3 HOT 1
- The requested module 'vue-demi' does not provide an export named 'computed' HOT 3
- Packaged a custom hook with rollup, ref did not unpack it automatically in the template HOT 2
- vue3.3 + ts, when v-for the computed array, the item type reference error
- Uses the wrong vue version in monorepo HOT 5
- How we resolve dependency issue for ? HOT 1
- v0.14.5 recently overwritten? and v0.14.6 does not work... HOT 11
- vue-demi-fix is missing HOT 5
- 这个文件前边都是es5语法,最后加的这一行箭头函数让我们构建时不得不对vue-demi单独加一条适配规则 HOT 1
- `postinstall` script doesn't play well with `pnpm` on Windows HOT 8
- vue.use 和 vue.default.use问题导致报错 HOT 1
- [HELP] The requested module '/node_modules/.vite/deps/vue.js?v=3af26c34' does not provide an export named 'Fragment'
- Reactivity loss when using with @vue/compat HOT 1
- TypeScript got incorrect vue version with pnpm workspace HOT 1
- Refactor with typescript ?
- Bun install segfault in Docker
- 安装依赖携带 --ignore-scripts 会导致无法在vue2的项目中使用
- scoped not support vue@2
- Build Error Resolved by Downgrading Vue-Demi from 0.14.9 to 0.14.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-demi.