![](https://img-blog.csdnimg.cn/20210412085347666.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
web前端踩坑记录
踩坑记录
日南葵
这个作者很懒,什么都没留下…
展开
-
不常用的js知识点
1.中括号中可写js表达式var a = 'name'var b = '张三'console.log([a])console.log([b+' is '+a])原创 2021-04-28 20:30:03 · 79 阅读 · 0 评论 -
vue-cli更改包管理器为yarn或npm
在安装并第一次使用vue-cli时,会提示你是用npm下载还是yarn下载。选择后,以后便以那个为默认值下载。如果想要更改包管理器,则在C盘的user目录下,找到.vuerc文件。更改值为npm/yarn原创 2021-04-22 02:11:23 · 1697 阅读 · 0 评论 -
vite踩坑记录
1.You are using the runtime-only build of Vue where the template compiler is not available.不想用vite的默认vue模板,只想自己import Vue from 'vue',做一个简单的vue demo。结果出错了,按照webpack的配置方法也不行。结果直接引入倒是成功了。import'./node_modules/vue/dist/vue.js'...原创 2021-04-12 08:57:13 · 3213 阅读 · 0 评论 -
flutter踩坑记录
到JAVA官方下载JDK16准备学习flutter,但是在运行flutter doctor的时候,出错了。原来是flutter只支持JDK1.8。原创 2021-04-11 03:07:27 · 173 阅读 · 1 评论 -
webpack踩坑记录
环境:"webpack":"^5.28.0", "webpack-cli":"^4.6.0", "webpack-dev-server":"^3.11.2"运行npx webpack-dev-server失败1.Cannot find module 'webpack-cli/bin/config-yargs'因为webpack-cli 4.x不支持webpack-dev-server,下降回3.xnpm i webpack-cli@3.3.12再运行npx web...原创 2021-03-28 10:42:24 · 103 阅读 · 0 评论