Description
Hello, I'm working on supporting both Vue2 and Vue3 in Vue InstantSearch.
I used vue-demi inside Vue InstantSearch. After installing Vue InstantSearch in an empty project, it gives me this error:
ERROR Failed to compile with 1 error 17:19:50
This dependency was not found:
* @vue/composition-api in ./node_modules/vue-demi/lib/index.esm.js
To install it, you can run: npm install --save @vue/composition-api
More details:
In the package.json
of Vue InstantSearch,
"dependencies": {
"vue-demi": "^0.9.1",
// ...
},
"peerDependencies": {
"vue": "^2.6.0 || >=3.0.0-rc.0",
"@vue/composition-api": "^1.0.0-beta.1",
// ...
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
},
"devDependencies": {
"vue": "2.5.18",
// ...
}
You can see the pull request here. And I deployed the temporary build of the pull request via CodeSandbox, which is:
https://pkg.csb.dev/algolia/vue-instantsearch/commit/3341e045/vue-instantsearch
Now I put it in an example:
p9ez8.zip
If you run yarn install && yarn serve
it will show the error message above.
In Vue InstantSearch, we do not use @vue/composition-api
, so left it as optional. The error message goes away only when I install it as a dependency inside the example.
Do you have any idea? Thanks!
- macOS: 11.3.1
- node: 12.19.0