草庐IT

error-cannot

全部标签

javascript - ng 表类型错误 : Cannot set property '$data' of null

我正在使用ng-table显示来自API调用的信息,我将其分组,就像website上的示例一样.但是,网站上的示例使用了静态信息,因为我每次都需要进行新的API调用。当我不包含$scope.$watch('groupby',function(value)函数时,我可以在第一次初始调用时显示表格。angular.module('myApp.controllers',['ngTable','ui.bootstrap','dialogs']).controller('HomeCtrl',function($scope,$log,$rootScope,$modal,TimeService,Ev

javascript - 强制定向图错误, "Cannot Read Property ' Push' of Undefined"

我是编码新手,最近开始使用d3生成力导向图。使用链接派生节点时,我成功生成了一个四节点图。但是,当我明确列出节点时,我收到错误“UncaughtTypeError:Cannotreadproperty'push'ofundefined(d3.v3.min.js)”。我研究了对以下两个类似问题的回答,但无法使用答案解决此问题。我试图尽可能多地删除不相关的功能,谢谢。JavaScripterror"UncaughtTypeError:Cannotcallmethod'push'ofundefined"D3.jsUncaughtTypeError:Cannotcallmethod'push'

javascript - 错误 : "Cannot find module" while running firebase cloud function

constfunctions=require('firebase-functions');varnodemailer=require('nodemailer');//constexpress=require('express');vartransporter=nodemailer.createTransport('smtps://username@gmail.com:password5@smtp.gmail.com');exports.sendMail=functions.https.onRequest((req,res)=>{varmailOptions={to:'receiver@

javascript - 如何用 Sentry 报告console.error?

我有一个应用程序,其中一些关键问题通过console.error报告,但没有被抛出,因此应用程序可能会继续运行-可能处于瘫痪状态。还需要报告console.error问题,但Sentry(Raven)库发送到服务器只抛出异常。有人知道如何很好地解决这个问题吗?(理想情况下无需重写所有console.error调用,因为某些vendor库可能仍会将输出写入控制台) 最佳答案 正如用户@kumar303在他对问题的评论中提到的...您可以使用JS控制台集成Sentry.Integrations.CaptureConsole。参见http

javascript - React 备忘录功能给出 :- Uncaught Error: Element type is invalid: expected a string but got: object

我有以下功能组件:-importReactfrom'react'import{Dropdown}from'semantic-ui-react'constDropDownMenu=(props)=>{constoptions=[{key:'fruits',text:'fruits',value:'Fruits'},{key:'vegetables',text:'vegetables',value:'Vegetables'},{key:'home-cooked',text:'home-cooked',value:'Home-Cooked'},{key:'green-waste',text:

javascript - 巫术/ capybara : Cannot log in with :js => true

我使用capybara已经有一段时间了,但我对巫术还是个新手。我有一个非常奇怪的问题,如果我在没有Capybara的:js=>true功能的情况下运行规范,我可以正常登录,但如果我尝试在规范上指定:js=>true,则无法找到用户名/密码。这是身份验证宏:moduleAuthenticationMacrosdefsign_inuser=FactoryGirl.create(:user)user.activate!visitnew_sessions_pathfill_in'EmailAddress',:with=>user.emailfill_in'Password',:with=>'f

javascript - 未捕获的类型错误 : Cannot read property 'name' of undefined

单击“选择文件”时,我有以下代码:$(':file').change(function(){if(this.files.length==1){$('#selected_files').html("Attaching"+this.files.length+"file");}else{$('#selected_files').html("Attaching"+this.files.length+"files");}$('#selected_files').append("FilenameSize");for(x=0;x"+name+"("+filesize(size)+")"+type+"

javascript - Uncaught ReferenceError : ActiveXObject is not defined Error in Chrome

我在Chrome中遇到这个错误“未捕获的ReferenceError:ActiveXObject未定义”我的代码是functionloadModel(){//----------------------------------------------------------------------------------------------document.getElementById("lModelMsg").innerText="Loading...";document.getElementById("lPartMsg").innerText="";vardMfg=docume

javascript - CKEditor 4 : Uncaught TypeError: Cannot read property 'langEntries' of null

我正在为CK编辑器(https://github.com/galetahub/ckeditor)使用Rubygem,但出现此错误:UncaughtTypeError:Cannotreadproperty'langEntries'ofnull这是它在代码中出现的地方:CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){vard={};returnfunction(b,c,e){vari={},g=function(b){a.call(this,b,function(a){CKEDI

javascript - 未捕获的类型错误 : Cannot use 'in' operator to search for '0' in (jQuery)

我觉得这与AJAX调用有关。不太确定发生了什么。从技术上讲,该错误是在定义isArraylike(obj)函数的第584行的jQuery文件中抛出的。jQuery(document).ready(function(){varwidth_of_grams=$(window).width();varnew_pic_height=(width_of_grams/7);$("img.gram_photo").css('height',(width_of_grams)/7);$("#instafeed").css('height',2*new_pic_height);$(window).resi