[plugin:vite:import-analysis] Failed to resolve import “axios“ from “src/utils/axios.js“. Does the f

news/2024/7/24 2:11:07 标签: vue

[plugin:vite:import-analysis] Failed to resolve import “axios” from “src/utils/axios.js”. Does the file exist?
这是什么bug?

[vite] Internal server error: variable @link-color is undefined
  Plugin: vite:css
  File: /Users/ivyone/hami54/guagua1/src/views/Login.vue
  26 |          <van-button round block type="primary" native-type="submit">
  27 |            登录
  28 |          </van-button>
     |               ^
  29 |          <p @click="chanegType('register')" class="change-btn">没有账号,前往注册</p>
  30 |        </div>
      at less (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:19208:33)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
      at async compileCSS (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:18883:34)
      at async TransformContext.transform (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:18567:50)
      at async Object.transform (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:43716:30)
      at async transformRequest (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:59433:29)
      at async /Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:59555:32
下午3:59:19 [vite] Internal server error: Failed to resolve import "axios" from "src/utils/axios.js". Does the file exist?
  Plugin: vite:import-analysis
  File: /Users/ivyone/hami54/guagua1/src/utils/axios.js
  1  |  import axios from "axios";
     |                     ^
  2  |  import { Toast } from "vant";
  3  |  import { useRouter } from "vue-router";
      at formatError (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:43518:46)
      at TransformContext.error (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:43514:19)
      at normalizeUrl (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:45057:26)
      at async TransformContext.transform (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:45185:57)
      at async Object.transform (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:43716:30)
      at async transformRequest (/Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:59433:29)
      at async /Users/ivyone/hami54/guagua1/node_modules/vite/dist/node/chunks/dep-66eb515d.js:59555:32

http://www.niftyadmin.cn/n/957766.html

相关文章

Python:将utf-8格式的文件转换成gbk格式的文件

转载自&#xff1a;https://www.cnblogs.com/hongfei/p/4240112.html 需求&#xff1a;将utf-8格式的文件转换成gbk格式的文件 实现代码如下&#xff1a; def ReadFile(filePath,encoding"utf-8"): with codecs.open(filePath,"r",encoding) as f: …

idea里面使用git很慢的解决方法

在idea里面做java开发&#xff0c;发现git的一些操作&#xff0c;包括push,checktout,pull都特别慢&#xff0c;但是在cmd里面很快&#xff0c;排除网络问题。 折腾半天&#xff0c;最后发现修改C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.2\bin目录下面的runnerw(64).…

python之for循环遍历字典数据类型

前言 python中有一种特殊的数据类型&#xff0c;叫做dict字典。实际上&#xff0c;字典这种数据类型非常类似于JavaScript语言中的json&#xff0c;Java语言的Map。 语法 {key1:value1,......} 特点 key不允许重复 for循环遍历 第一种 第二种 第三种 总结 字典在实际开…

springBoot跨域注解@CrossOrigin

方法一(此方法maven install需jdk1.8版本): Spring Framework 4.2 GA为CORS提供了第一类支持&#xff0c;使您比通常的基于过滤器的解决方案更容易和更强大地配置它。所以springMVC的版本要在4.2或以上版本才支持CrossOrigin ; springBoot跨域注解 : CrossOrigin 在controll…

python 读取文件夹中的文件内容

看thinking in java的时候发现有个题的答案不确定结果&#xff0c; 于是下载答案看下&#xff0c;结果是 这个样子的,这样要怎么才能找到相对应的答案&#xff1f;于是我就着手写了一个快速遍历的脚本&#xff08;我这里只是单纯的找了出来&#xff0c; 没有把找到的文件单独拿…

npm Node Sass version 7.0.1 is incompatible with ^4.0.0.

Node Sass version 7.0.1 is incompatible with ^4.0.0. 解决方案输入&#xff1a; cnpm i -D sass 或者 npm i -D sass

opencv: 图像缩放(cv2.resize)

Syntax cv2.resize(src, dsize[, dst[, fx[, fy[, interpolation]]]]) → dst interpolation 选项 所用的插值方法 INTER_NEAREST 最近邻插值 INTER_LINEAR 双线性插值&#xff08;默认设置&#xff09; INTER_AREA 使用像素区域关系进行重采样。 它可能是图像抽取…

cannot be found on object of type ‘org.springframework.cache.interceptor.CacheExpressionRootObject‘

Cannot find cache named for Builder[public java.u Property or field cannot be found on object of type org.springframework.cache.interceptor.CacheExpressionRootObject - maybe not public key如果是常量必须用单引号引起来: key "keyStrijng"; key拼…