报错
gz-郭小敏
这个作者很懒,什么都没留下…
展开
-
【antd】Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an
找到index.js 果然默认是严格模式,删除<React.StrictMode>标签,关闭严格模式,警告自然消除了原创 2020-07-14 15:30:43 · 1125 阅读 · 0 评论 -
【ant-design】解决antd3.0版本TreeSelect组件初次点击面板消失
环境:ant design3.24.3问题:无论是用官方demo还是自己写的组件,初次点击展开按钮都会消失,第二次则不会解决思路:一开始我考虑的我的代码问题,然而我的同事直接复制我的代码到另外一个项目上并不会出现这个问题。直接复制官方demo到项目中,也同样会出现这个问题。这时我开始怀疑是否是安装的包有问题,故我从并尝试了几种安装包的方式(npm install,cnpm install ,yarn install....)然而并没什么卵用╮(╯▽╰)╭然后...原创 2020-06-16 10:19:53 · 2235 阅读 · 0 评论 -
Uncaught TypeError: Cannot assign to read only property 'exports' of object '
1、问题描述项目之前正常的路由配置是这样的:2、路由配置说明第一种做法:每个页面模块目录通过一个 index.js 主入口来导出(module.exports)对应的vue文件,然后 router.js 中通过 require 方法去引入资源。这一做法是没毛病的,因为这是组织(webpack 2)允许的。第二种做法:如果好好的require不用,非要用 impo...转载 2019-04-19 10:09:54 · 6104 阅读 · 0 评论 -
【vue】报错:mapState is not defined
场景:vue-cli项目引入了vuex,在vue component模块中调用以下代码报错。export default { computed:{ ...mapState({ isLogin: state => state.isLogin, userName:state => state.userName, }), }}错误:App.vue...原创 2019-04-16 17:09:04 · 16000 阅读 · 1 评论 -
【Scrapy】Scrapy框架安装错误
问题描述:win10, python3.7,64位在windows下,在dos中运行pip install Scrapy报错解决方案:1.打开https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted2.然后下载Twisted‑19.2.1‑cp37‑cp37m‑win_amd64.whl(cp后面是python版本,a...原创 2019-04-02 18:08:05 · 258 阅读 · 0 评论 -
【vue】vue 使用highlight.js的坑:highlight效果经常没有了
首先,我说下我为啥会遇到这个吭。。。。项目如下:https://github.com/guosimin/data-management, 当然如果给我来个star,我会很开心的。1.我用的是vue-cli 搭建的前端项目2.我的内容来源是csdn中的博文,而博文里面用到的代码通过调用highlight.js实现的3.原本我可以考虑通过Selenium爬取调用后的结果,这样样式能...原创 2019-04-10 17:20:55 · 12195 阅读 · 6 评论 -
【vue】利用koa-cors实现vue-cli项目的跨域请求后端
错误提示:Access to XMLHttpRequest at 'http://localhost:7777/charts/query' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control c...原创 2019-03-27 18:51:45 · 1861 阅读 · 0 评论 -
selenium.common.exceptions.WebDriverException: Message: Service C:\Program F
原因找不到driver的路径,需要将driver的路径加上解决办法:1. 下载:FireFox的驱动,gechodriver(蜥蜴驱动?!),找如下链接里面对应操作系统的:https://github.com/mozilla/geckodriver/releasesIE的驱动,edge(边界?!),找如下链接里面的Download:https://develo...原创 2019-04-10 10:56:41 · 8432 阅读 · 3 评论 -
【python】local variable 'UserAgent' referenced before assignment
原始代码如下:import fake_useragentfrom fake_useragent import UserAgentdef getHeader(): UserAgent = UserAgent().random; headers = {'User-Agent': UserAgent} return headersif __name__ == '...原创 2019-03-08 17:44:02 · 408 阅读 · 0 评论 -
ES6 写法报错regeneratorRuntime is not defined
Paste_Image.png现在来回答一下自己的问题,也方便遇到同样写es6却报上图红字错误的同志们,首先babel基础包(不安装额外东西)并不是支持完整的es6语言,加上浏览器也不是支持所有的es6语言,如果你写的es6语言刚好撞上这样的情况了.那么就需要babel的拓展包(Polyfill)http://www.bootcdn.cn/babel-polyfill/...原创 2016-11-10 11:02:00 · 2327 阅读 · 0 评论 -
r is not a constructor报错
刚刚想通过npm方式引入vue,结果却报r is not a constructor;解决方法:import Vue from 'vue'原创 2018-10-11 17:07:19 · 5994 阅读 · 0 评论 -
[Vue warn]: Property or method "verify" is not defined on the instance but referenced during render.
还是做回自己博客发布系统的练习项目,结果一不小心掉到自己的坑里。先看报错:[Vue warn]: Property or method "verify" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the da...原创 2018-11-23 17:47:28 · 7758 阅读 · 0 评论 -
DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version
关于警告 :DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.大致...原创 2018-11-26 11:58:17 · 3619 阅读 · 0 评论 -
【webstrom】Error in JetBrains node debug connector: TypeError: Cannot read property 'port' of null at
问题是更新webstrom 2018.3 后 点击debbuger 模式出现的 .Error in JetBrains node debug connector: TypeError: Cannot read property 'port' of nullat Object.<anonymous>解决办法:1.调出查找action面板2.将js.deb...原创 2019-02-26 10:23:55 · 3653 阅读 · 3 评论