有人知道如何在nuxt3中安装@nuxtjs/composition-api吗?
P粉195200437
P粉195200437 2023-07-28 12:23:55
0
1
428
<p>我之前有一个Nuxt 2项目,其中安装了"@nuxtjs/composition-api"包的版本是"^0.33.1"。现在我需要将Nuxt版本从2.5更改为3.6.2。如果你能帮助我解决这个问题,我将非常感激。</p><p>我已经进行了更改,但目前在运行yarn dev命令时遇到了错误。</p><p><br /></p> <pre class="brush:php;toolbar:false;">ERROR error while updating dependencies: 4:36:09 PM Error: Build failed with 3 errors: node_modules/@nuxtjs/composition-api/dist/runtime/index.mjs:1:175: ERROR: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "set" node_modules/@nuxtjs/composition-api/dist/runtime/index.mjs:2:30: ERROR: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "del" node_modules/@nuxtjs/composition-api/dist/runtime/index.mjs:2:409: ERROR: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "set" at failureErrorWithLog (C:UsersskyWebtestfrontendnode_modulesvitenode_modulesesbuildlibmain.js:1636:15) at C:UsersskyWebtestfrontendnode_modulesvitenode_modulesesbuildlibmain.js:1048:25 at C:UsersskyWebtestfrontendnode_modulesvitenode_modulesesbuildlibmain.js:1512:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)</pre> <p>我在哪里找不到文档(((,如果我移除这个包,我在导入时会出现错误 import {onMounted, computed, useRoute, useContext, ref} from "@nuxtjs/composition-api"。</p>
P粉195200437
P粉195200437

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!