From 2043c83eb50ac10774baf045088a4065bd92b8a2 Mon Sep 17 00:00:00 2001 From: Kion Tupper Date: Sun, 18 Apr 2021 15:15:39 -0400 Subject: [PATCH] Make @vue/composition-api optional NPM 7 attempts to automatically resolve peer dependencies and errors if it can't. This makes it difficult to use this package with Vue 3, since @vue/composition-api depends on Vue 2. This change brings vuefire in line with the README from vue-demi. Pending this change, a workaround is to use --legacy-peer-deps when installing. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 5cd12589..5e60d605 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,11 @@ "@vue/composition-api": "^1.0.0-beta.1", "vue": "^2.0.0 || >=3.0.0-rc.0" }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + }, "repository": { "type": "git", "url": "git+https://github.com/posva/vuefire.git"