![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
ZJ_xunyicao
未毕业学生
展开
-
[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example becaus
在vue项目中使用vue-awesome-swiper2.7.6的时候鼠标滑到最右边会报下面的错:[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.解决办法:[Intervention] Ignored attempt to cancel a tou原创 2020-12-10 14:16:22 · 590 阅读 · 0 评论 -
This dependency was not found: * swiper/css/swiper.css in ./src/main.js
vue2中使用npm install swiper vue-awesome-swiper --save命令行安装并使用 vue-awesome-swiper 会报下面的错:解决方案:如果要安装vue-awesome-swiper@2.6.7版本,不能只执行npm install vue-awesome-swiper@2.6.7 --savenpm会自动帮你下载最新的swiper版本安装。为避免版本差距过大,需要先卸载swiper最新版,再下载swiper低版本。1.卸载swipe:npm u原创 2020-12-10 12:37:22 · 4042 阅读 · 1 评论 -
解决UnhandledPromiseRejectionWarning: TypeError: loaderContext.getResolve is not a function
我安装的stylus版如下:安装的stylus-loader版本如下:在加入stylus跟stylus-loader模块后,vue项目启动的时候报下面的错原因是stylus跟stylus-loader的新版本不对应。解决办法:1.npm uninstall stylus stylus-loader2.npm i stylus@0.54.5 stylus-loader@3.0.2 --save参考了这篇文章:vue使用lang=“stylus“报错UnhandledPromiseRe原创 2020-12-10 09:21:07 · 583 阅读 · 0 评论 -
学习Vue笔记
这里记录一些学习Vue.js的注意项。一.动态参数实例<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <title>demo</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script></head><bod原创 2020-12-08 11:47:42 · 74 阅读 · 0 评论