自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 vue开发安装sass后报错TypeError: this.getOptions is not a function at Object.loader

执行yarn add node-sass sass-loader安装的是最新版执行代码时报错TypeError: this.getOptions is not a function at Object.loader解决方案,找到与node-sass匹配的 sass-loader版本执行命令 yarn add sass-loader@版本号

2021-03-13 17:26:18 1618

原创 vue开发报错Module not found: Error: Can‘t resolve ‘~static/sass/house.sass

引入sass文件时,代码如下<style scoped lang='sass' src='~static/sass/house.sass'></style>报错Module not found: Error: Can’t resolve '~static/sass/house.sass原因路径错误检查sass文件相对路径解决方案修改路径为<style scoped lang='sass' src='../../static/sass/house.sass'

2021-03-13 17:22:43 609

原创 vue项目使用pug报错Failed to compile with 1 errors This relative module was not found: webpack没有安装pug

在Vue项目中使用pug时报错<template lang="pug"> .container .house(ref='house') .items(v-for='(item, index) in houses' :key='index' @click='showHouse(item)') .desc .words {{item.words}} .cname {{item.name}} .nam

2021-03-10 00:31:56 860

原创 koa开发微信公众号在微信测试号测试时报错errMsg: 40048,config:fail,Error: invalid url

微信开发者工具调试页面时报错errMsg: 40048,config:fail,Error: invalid url微信官方解释40048 无效的url解决方案在设置 JS接口安全域名修改设置JS接口安全域后,通过关注该测试号,开发者即可在该域名下调用微信开放的JS接口,请阅读微信JSSDK开发文档。将配置的https://xxxx.xxxx.net改成xxxx.xxxx.net...

2021-03-07 21:31:34 478 1

原创 koa开发微信公众号报errcode: 40001, errmsg: ‘invalid credential, access_token is invalid or not latest rid:

调用微信公众号新增临时素材接口代码const base = 'https://api.weixin.qq.com/cgi-bin/'const api = { accessToken: base + 'token?grant_type=client_credential', temporary: { upload: base + 'media/upload?', fetch: base + 'media/get?' }, permanent: { upload: base + 'm

2021-03-07 11:57:13 807

原创 koa开发微信公众号报错MissingSchemaError: Schema hasn‘t been registered for model “Token“

token.js代码const mongoose = require('mongoose')const Schema = mongoose.Schemaconst TokenSchema = new mongoose.Schema({ name: String, access_token: String, expires_in: Number, meta: { createAt: { type: Date, default: Date.now()

2021-03-07 02:22:16 162

原创 mac 卸载重装mongodb步骤及遇到的常见问题,Failed to unlink socket file,Renamed existing log file,child process faile

卸载到mongodb所在目录下我本地是 /usr/local执行rm -rf mongodb重装# 进入 /usr/localcd /usr/local# 下载sudo curl -O https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-4.0.9.tgz# 解压sudo tar -zxvf mongodb-osx-ssl-x86_64-4.0.9.tgz# 重命名为 mongodb 目录sudo mv mongod

2021-03-07 00:59:04 1562 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除