TS2724: 'vue'에는 'JSXComponent'라는 내보낸 멤버가 없습니다. "구성 요소"를 의미합니까?
P粉278379495
P粉278379495 2023-09-02 11:22:21
0
1
537
<p>我尝试启动 Vue 3 + Vuetify 项目,但在运行 <code>yarn build</code> 时遇到此错误:</p> <pre class="brush:php;toolbar:false;">>얀 빌드 node_modules/vuetify/lib/comComponents/index.d.mts:2:99 - 오류 TS2724: '"vue"' 'JSXComponent'라는 내보낸 멤버가 없습니다. '구성요소'를 의미했나요? 2 가져오기 { Ref, DeepReadonly, ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, PropType, JSXComponent, ComponentInternalInstance, ComputedRef, Component, EffectScope, nextTick, WritableCompulatedRef, CSSProperties, Prop, Co 'vue'의 mComponentPublicInstance, InsertKey, UnwrapRef }; ~~~~~~~~~~~ node_modules/vuetify/lib/index.d.mts:2:29 - 오류 TS2724: '"vue"' 'JSXComponent'라는 내보낸 멤버가 없습니다. '구성요소'를 의미했나요? 2 'vue'에서 { Ref, DeepReadonly, JSXComponent, PropType, CSSProperties, App } 가져오기; ~~~~~~~~~~~ node_modules/vuetify/lib/labs/comComponents.d.mts:2:69 - 오류 TS2724: '"vue"' 'JSXComponent'라는 내보낸 멤버가 없습니다. '구성요소'를 의미했나요? 2 'vue'에서 { ComponentPropsOptions, ExtractPropTypes, Ref, EffectScope, JSXComponent, PropType, UnwrapRef, CSSProperties, nextTick, VNode } 가져오기; ~~~~~~~~~~~ 3개 파일에서 3개의 오류가 발견되었습니다. 오류 파일 1 node_modules/vuetify/lib/comComponents/index.d.mts:2 1 node_modules/vuetify/lib/index.d.mts:2 1 node_modules/vuetify/lib/labs/comComponents.d.mts:2</pre> <p>这是내가 좋아하는<code>package.json</code>:</p> <pre class="brush:php;toolbar:false;">{ "이름": "프론트엔드", "버전": "0.0.0", "비공개": 사실, "스크립트": { "dev": "초대", "build": "vue-tsc --noEmit && vite 빌드', "preview": "초대 미리보기", "lint": "eslint . --fix --ignore-path .gitignore" }, "종속성": { "@mdi/font": "7.0.96", "core-js": "^3.29.0", "피니아": "^2.0.0", "roboto-fontface": "*", "vue": "^3.3.4", "vue-router": "^4.0.0", "vuetify": "^3.0.0", "웹폰트로더": "^1.0.0" }, "devDependency": { "@babel/types": "^7.21.4", "@types/node": "^18.15.0", "@types/webfontloader": "^1.6.35", "@vitejs/plugin-vue": "^3.0.3", "@vue/eslint-config-typescript": "^11.0.0", "에슬린트": "^8.37.0", "eslint-plugin-vue": "^9.3.0", "sass": "^1.60.0", "타입스크립트": "^5.0.0", "초대": "^4.3.8", "vite-plugin-vuetify": "^1.0.0", "vue-tsc": "^1.2.0" } }</pre></p>
P粉278379495
P粉278379495

모든 응답(1)
P粉924915787

"build" 스크립트를 업데이트하여 vue-tsc --noEmit 명령을 제거하여 문제를 해결했습니다.

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