首页 > 其他分享 >export ‘Vue‘ (imported as ‘Vue‘) was not found in ‘vue‘

export ‘Vue‘ (imported as ‘Vue‘) was not found in ‘vue‘

时间:2023-09-09 21:46:24浏览次数:31  
标签:Vue imported cli vue export found

export 'Vue' (imported as 'Vue') was not found in 'vue' (possible exports: $computed, $fromRefs, $raw, $ref, BaseTransition, Comment, EffectScope, Fragment, KeepAlive, Rea
ctiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode
, compatUtils, compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createHydrationRenderer, createRenderer, createSSRApp
, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, definePro
ps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, init
CustomFormatter, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normaliz
eProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, one rrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScope
Dispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompil
er, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook,
setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transform
VNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vM
odelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModi
fiers, withScopeId)

经过百度,网上说我按照的cli版本过高,不过我的cli版本是5版本,确实过高
npm uninstall -g vue-cli

安装指定版本的cli
npm install -g @vue/[email protected]

打开VScode npm install 

 

已解决



标签:Vue,imported,cli,vue,export,found
From: https://www.cnblogs.com/tongzhe/p/17690189.html

相关文章

  • Vue进阶(幺陆陆):组件实例 $el 详解
    this指向组件实例,$el用于获取Vue实例挂载的DOM元素,在mounted生命周期中才有效,之前的钩子函数内无效。如下代码所示,Vue脚手架中,$el指向当前组件template模板中的根标签。<template><divid="root">Lorem,ipsum</div></template><script>exportdefault......
  • 从零开始使用vue2+element搭建后台管理系统(前期准备)
    准备开始1.安装node(node-v查询版本号)(下载地址:https://nodejs.org/en/download/)2. 安装淘宝镜像 npminstall-gcnpm--registry=https://registry.npm.taobao.org3.安装webpack,以全局的方式安装 npminstallwebpack-g4.全局安装vue以及脚手架vue-cli npminst......
  • 一套基于spring boot vue开发的UWB定位系统源码 UWB全套源码
    现代制造业厂区面积大、人员数量多、物资设备不断增加,随着工业信息化技术的发展,大型制造企业中对人员、车辆、物资的管理要求越来越细致。高精度定位管理系统使用UWB室内定位技术,通过在厂区安装定位基站,为人员或设备佩戴定位标签的形式,实现人员精准实时定位。可以实现人员、车辆物......
  • vue.js:响应式布局([email protected])
    一,代码:1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859<template>  <divclass="hello">    <div>页......
  • 生成一个vue3的博客
    Vue3是一个流行的JavaScript框架,用于构建用户界面。要生成一个Vue3的博客,您需要按照以下步骤进行操作:首先,确保您的环境中已经安装了Node.js和npm(Node包管理器)。您可以通过在命令行中运行node-v和npm-v来检查它们的版本。在您喜欢的目录中创建一个新的Vue3项目......
  • vue3 跳转小程序
    兼容微信内跳转和h5跳转第一步在index.html里面引入SKD<!--公众号JSSDK--><scriptsrc="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><!--云开发WebSDK--><scriptsrc="https://res.wx.qq.com/open/js/cloudbase/1.1.0/clo......
  • Vue项目中处理key=value格式的数据-demo
    要从qrCode字符串中获取expiredAt的值,你可以使用JavaScript的字符串操作方法。以下是一个示例,展示如何提取expiredAt的值:constqrCode='expiredAt=1693821037721&token=c214de74cf5847239da3005c9465025e';constparams=newURLSearchParams(qrCode);constexpiredAt=param......
  • vue项目实战之图片画廊组件的实现
    前言笔者曾经写过不少或原生的、或封装的第三方插件的组件,总结来说,并不是所有东西都用原生,自定义的才是好的。很多插件做的也是不错的。就比如笔者今天所用的这个插件:vue-awesome-swiper——这个还是很强的【轮播图】/【滚动】插件。非常的好用、方便。需要详细了解的可以去GitHu......
  • vue常见面试题
    1.vue优点?答:轻量级框架:只关注视图层,是一个构建数据的视图集合,大小只有几十kb;简单易学:国人开发,中文文档,不存在语言障碍,易于理解和学习;双向数据绑定:保留了angular的特点,在数据操作方面更为简单;组件化:保留了react的优点,实现了html的封装和重用,在构建单页面应用方面有着独特的优......
  • Vue源码学习(三):<templete>渲染第二步,创建ast语法树
    好家伙,书接上回 在上一篇Vue源码学习(二):<templete>渲染第一步,模板解析中,我们完成了模板解析现在我们继续,将模板解析的转换为ast语法树 1.前情提要代码已开源https://github.com/Fattiger4399/analytic-vue.git手动调试一遍,胜过我解释给你听一万遍functionstart......