NOTIC: [8] Trying to get property of non-object /home/wwwroot/qwsd/Application/Admin/Controller/ProjectController.class.php 第 29 行. 一般错误是查询 没有查询到值 也没有返回值,很多情况是sql的问题,可以直接打印错误排查问题. $result = $db->query($query) or die($db->error);   文章来源:刘俊涛的博客 欢迎关注…
问题:创建mongodb帐户时,出错 > db.addUser('jyu', 'aerohive')  2015-08-05T20:03:02.767+0800 E QUERY    TypeError: Property 'addUser' of object admin is not a function   #步骤1: 刚开始以为是权限问题,以非auth方式重启mongodb mongod --dbpath=/opt/mongodb/data --logpath=/opt/mongodb/…
Vue的报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'   1.运行一下以前的一个Vue+webpack的 vue仿新闻网站  小项目,报错 由于自己vue学习不深入,老是这个报错,找了好久(确切的说是整整一下午^...^)才找到原因 -v- Uncaught TypeError: Cannot assign to read only property 'exp…
发现问题 运行一下以前的一个Vue+webpack的 vue仿新闻网站  小项目,报错 由于自己vue学习不深入,老是这个报错,找了好久(确切的说是整整一下午^...^)才找到原因 -v- Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 点开错误的文件,标注错误的地方是这样的一段代码: import {normalTime} from './timeFormat';…
问题描述: webpack 打包报错 Cannot assign to read only property 'exports' of object '#<Object>',这怎么破? 解决方案: 原因是:The code above is ok. You can mix require and export. You can‘t mix import and module.exports 翻译过来就是说,代码没毛病,在webpack打包的时候,可以在js文件中混用require和export…
<form action="" type="get" id="form"> <input type="button" name="submit" id="subBtn" value="submit"> </form> 点击按钮,触发表单提交: document.getElementById("subBtn").o…
自己试做了一下vue的插件 参考element-ui: 写了一个组件 import message from './packages/message/index.js'; const install = function (Vue, options) { if(install.installed ) return; //console.log(Vue) // 1. 添加全局方法或属性 Vue.prototype.myMessage= message; Vue.prototype.dtime=fu…
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 点开错误的文件,标注错误的地方是这样的一段代码: 就是module.exports; 百度查不到,google一查果然有. 原因是:The code above is ok. You can mix require and export. You can‘t mix import and module.exports.…
用weex做项目的时候,npm start 之后一直报错error:Cannot assign to read only property 'exports' of object '#<Object>' ,查了好多资料好像是export和import共用了导致不兼容引起的 试了好多方法都不行,最后找到个办法,试了一下可以用,特此记录: npm install babel-plugin-transform-es2015-modules-commonjs 然后在 babelrc中配置 { &quo…
最近用Vue在搭建前端框架,在引用i18n时,运行的时候报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>',在此记录下. 先看看代码:安装i18n 插件就不累述了(npm install vue-i18n) 中文:cn.js module.exports={ indexText:{ Code:'編號', } } 英文:en.js module.exports={ i…