报错
Cao_Mary
这个作者很懒,什么都没留下…
展开
-
ModuleNotFoundError: No module named ‘ruamel‘
【代码】ModuleNotFoundError: No module named ‘ruamel‘原创 2023-04-23 23:10:42 · 597 阅读 · 1 评论 -
options has an unknown property ‘overlay‘.
ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options has an unknown property 'overlay'. These properties are valid: object { allowedHosts?, bonj原创 2023-04-12 16:06:23 · 2793 阅读 · 2 评论 -
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
使用NodeJS编写服务端存储cookie时注意事项原创 2023-01-24 12:58:32 · 648 阅读 · 0 评论 -
error:could not build wheels for word2vec, which is required to install pyproject.toml-based project
error:could not build wheels for word2vec, which is required to install pyproject.toml-based project原创 2022-09-01 16:11:10 · 3178 阅读 · 0 评论 -
MinGW-w64下安装报错the file has been downloaded incorrectly
the file has been downloaded incorrectly原创 2022-09-01 15:19:11 · 3499 阅读 · 0 评论 -
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“: h
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": h原创 2022-09-01 12:33:12 · 5432 阅读 · 4 评论 -
win10 安装visual studio C++ build tools 【visualcppbuildtools_full.exe】提示安装包丢失 毁坏
win10安装visual studio C++ build tools 提示安装包丢失或毁坏原创 2022-09-01 12:30:22 · 6334 阅读 · 17 评论 -
TS2322: Type ‘“123“‘ is not assignable to type ‘number‘.
使用TypeScript,报错:TS2322: Type ‘“123”’ is not assignable to type ‘number’.问题原因:定义的数值类型的数据,赋值是一个字符串。因此报错。解决办法:将字符串修改为数值类型即可。原创 2021-06-18 16:06:59 · 2455 阅读 · 0 评论 -
nvm use xxx无效
问题描述:使用nvm use xxx命令切换版本后,执行nvm ls命令,当前使用版本号前无“*”,未切换成功。问题原因:nodejs默认安装目录没有安装相对应的node版本。解决方案:1 删除nodejs文件夹,2 nvm uninstall xxx版本。3 重新nvm install xxx版本后,4 立马nvm use xxx对应版本,就能生效了。...原创 2021-05-28 13:25:24 · 3045 阅读 · 0 评论 -
React-路由跳转报错:Error: Invariant failed: You should not use <withRouter(App) /> outside a <Router>
报错:Error: Invariant failed: You should not use <withRouter(App) /> outside a 问题描述:使用history的push方法手动跳转路由。结果报错问题原因:如果一个组件要使用路由创建, 那么这个组件必须包裹在BrowserRouter, HashRouter中解决办法:将组件包裹在BrowserRouter,或HashRouter中即可...原创 2021-04-21 17:42:45 · 7108 阅读 · 0 评论 -
React-路由跳转-Cannot read property ‘push‘ of undefined
报错:Cannot read property ‘push’ of undefined问题描述:使用history的push方法手动跳转路由。结果报错push方法undefined了this.props.history.push('地址')问题原因:如果一个组件是通过路由创建的, 那么系统就会自动给这个组件传递一个history对象。但是如果一个组件不是通过路由创建的, 那么系统就不会给这个组件传递一个history对象,history对象都找不到了,那push方法自然就报错undefined解原创 2021-04-21 17:40:20 · 1190 阅读 · 0 评论 -
React项目查看webpack【报错:Remove untracked files, stash or commit any changes, and try again.】
在React项目中,,webpack的相关文件默认被隐藏,如果想查看webpack文件,就在项目目录下输入:npm run eject如果报错Remove untracked files, stash or commit any changes, and try again,是因为使用脚手架新建的项目中,有文件被删除。因此五大执行该命令。...原创 2021-04-05 15:21:19 · 385 阅读 · 0 评论 -
NodeJS 编写工具包的版本号和帮助文档 [报错:error: unknown option ‘--version]
一般全局的工具包有两个参数必须要处理:–version和–help,分别会输出包的版本号,和帮助文档。编写步骤:1、获取传递参数:NodeJS 通过process.argv获取参数2、根据不同的参数,返回不同内容返回不同内容,除了使用if语句判断自定义指令传递的参数外。还可以使用commander工具,快速编写工具包的版本号和帮助文档。1.安装commander包:npm i commander2.导入commander:const program = require(‘commande原创 2020-11-11 20:59:17 · 1717 阅读 · 0 评论 -
报错:Error: Cannot find module
编写自定义执行指令时,写js文件第一行写执行环境#! /usr/bin/env node // 执行环境报错如下:internal/modules/cjs/loader.js:797throw err;^Error: Cannot find module ‘C:*index鏂囦欢鍦╪ode鐜涓墽琛?’?[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)?[39m?[9原创 2020-11-11 18:37:36 · 6611 阅读 · 0 评论 -
Duplicate keys detected: ‘0‘. This may cause an update error.
报错:Duplicate keys detected: ‘0’. This may cause an update error.原因:同一个模板里,有两个v-for,:key都用的是遍历得到的index<template><div v-for="(value, index) in arr" :key="index"></div><div v-for="(value, index) in arr2" :key="index"></div>原创 2020-09-04 12:31:26 · 697 阅读 · 0 评论 -
vue 使用iscroll5做滚动效果,造成@click点击事件失效
vue组件的click失效,查明原因是被iscroll禁用了。添加preventDefault即可。如下: this.iscroll = new IScroll(this.$refs.wrapper, { preventDefault: false })原创 2020-08-17 20:55:07 · 508 阅读 · 0 评论 -
Invalid prop: type check failed for prop “index“.
Vue使用ElementUI的NavMenu时,有个index属性。此属性需要传递string类型。原创 2020-08-14 13:53:47 · 214 阅读 · 0 评论 -
vue使用本地json文件存放位置
存放在项目的public文件目录下即可原创 2020-08-14 12:30:17 · 2825 阅读 · 0 评论 -
Could not install from “element-ui\lib\nav-menu“ as it does not contain a package.json file.
使用Element-UI编写导航栏,需要使用NavMenu。为避免项目过大,[ 按需引用 ] NavMenu后报错:Could not install from “element-ui\lib\nav-menu” as it does not contain a package.json file.。// 按需引用import { NavMenu } from 'element-ui'解决办法:使用NavMenu 按需引用需修改如下:import { Menu, Submenu, MenuIte原创 2020-08-13 21:39:31 · 1990 阅读 · 0 评论 -
【Vue报错】did you register the component correctly
问题描述:Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.报错原因1::是因为暴露组件的时候加了组件扩展名,导致未识别。//错误写法:export default { name: 'xxx.vue'}//正确写法export default { name: 'xxx'原创 2020-06-22 11:23:54 · 6306 阅读 · 0 评论
分享