Dependency issue with @nuxtjs/composition-api
See original GitHub issueI’m trying to use @vueuse/core
with @nuxtjs/composition-api
in my Nuxt project.
And I get a error message:
This dependency was not found:
* @vue/composition-api/dist/vue-composition-api.esm.js in ./node_modules/vue-demi/lib/index.mjs
But @vue/composition-api
have been install. Because @vue/composition-api
is also @nuxtjs/composition-api
’s dependency.
I have no idea how to fix it.
Here is reproduction link: codesandbox
Have any solution to fix this? Thank you!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:22 (8 by maintainers)
Top Results From Across the Web
Nuxt Composition API
Vue 3 Composition API. Get all the Composition API features in Nuxt 2. ; SSR features. Additional helpers to interact with SSR. ;...
Read more >How can i solve Nuxt.js cannot find module '@vue ...
I've found out this error is being caused by Vuter extension. This extension is requiring composition API which is ...
Read more >@nuxtjs/composition-api - npm
Composition API hooks for Nuxt. Latest version: 0.33.1, last published: 5 months ago. Start using @nuxtjs/composition-api in your project by ...
Read more >Composition API FAQ - Vue.js
Composition API is a set of APIs that allows us to author Vue components ... us to leverage Vue's dependency injection system while...
Read more >@nuxtjs/composition-api | Yarn - Package Manager
config - you should remove any entry for @nuxtjs/composition-api there. When used outside a Nuxt context, the module will 'auto-mock' and use https://github.com ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you’re on Netlify try adding a
.nvmrc
file with your desired node version, this fixed it for me!Hi @antfu @Ricklin90085
Before this PR nuxt-community/composition-api#517 gets merged, I have another workaround to this issue. It’s worked to me.
Thanks to the @antfu 's answer, he inspires me to have this workaround.
So, when we have this workaround, we can enjoy @vueuse 's charm. 😄