报错
所有报错
前端码命
这个作者很懒,什么都没留下…
展开
-
Uncaught (in promise) Error: A component suspended while responding to synchronous input. This will
Uncaught (in promise) Error: A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.原创 2023-03-01 16:20:27 · 1799 阅读 · 1 评论 -
vue M1npm install报错
解决办法:我运行的是:sudo rm -rf $(xcode-select -p)sudo xcode-select --install同事帮忙运行:rm -rf node_modulesnpm install --target_arch=x64npm rebuild node-sass最后再npm install就好了,好的莫名其妙原创 2021-06-30 10:55:21 · 953 阅读 · 0 评论 -
npm install 报错 code 404
如果在项目工程下面有.npmrc这个文件的话,那么里面配置的应该都是淘宝镜像cnpm install去下载,只需要把里面的淘宝源地址换成npm的# sass_binary_site=https://npm.taobao.org/mirrors/node-sass/# phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/# electron_mirror=https://npm.taobao.org/mirrors/electron/#原创 2021-07-16 16:32:26 · 2485 阅读 · 0 评论 -
next start 报错 not found next
相关资料来源于https://blog.csdn.net/ab110911/article/details/83089768一般来说集成next.js的项目都会有{ "scripts": { "dev": "next", "build": "next build", "start": "next start" }}这个配置,但是启动的时候是要用npm run dev去启动的...原创 2021-07-16 17:01:14 · 1523 阅读 · 0 评论 -
请求接口报错net::ERR_FAILED
出现这个问题的原因:1:前端域名配置错误2:后端没有配置这个域名解决:确定当前接口请求和后端配置的域名一致,如果不一致,需要前端配置文件中改为和后端域名一致,如果项目中有使用多个域名的配置,除了主域名的接口之外,其他的域名接口需要单独代理调用,我当前的调用方式:getStoreSwitch(options = {}) { // 开关获取 options.baseURL = process.env.VUE_APP_WHALE_API options.url = `/pointma.原创 2021-07-20 11:21:17 · 77460 阅读 · 2 评论 -
报错422
传参方式不对,可能项目里面封装了固定默认参数,需要这样处理一下const options = { params: { switchFlag: this.sellSwiVal } }或者参数没传原创 2021-07-20 15:05:57 · 4999 阅读 · 0 评论 -
vue.min.js:6 TypeError: Cannot read property ‘_wrapper‘ of undefined
vue 代码这个写代码的时候报错这个鬼东西,不清不楚解决方法:看一下自己代码里面是不是在标签上面引用了方法,但是没有在methods里面却没有这个方法函数原创 2021-07-22 16:37:32 · 2160 阅读 · 0 评论 -
vue element el-date-picker组件报错TypeError: e.getHours is not a function
这个是报错代码:<el-date-picker v-model="form.date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" />这个是解决后的代码format不可以有,不然会在选择的时候导致格式不一致:<el-date-pick原创 2021-07-27 15:45:54 · 3083 阅读 · 2 评论 -
TypeError: e.getHours is not a function
element ui el-date-picker组件报错TypeError: e.getHours is not a function<el-form-item label="生效时间" prop="date"> <el-date-picker v-model="form.date" value-format="yyyy-MM-dd" type="date" placeh原创 2021-07-28 10:52:32 · 2623 阅读 · 0 评论