当我关闭Google API时,我得到一条“未捕获的TypeError:无法读取未定义的属性'DataTable‘”的消息。
我想捕捉这个未定义的错误,并弹出一个窗口,上面写着"Google已被禁用“,但我不确定什么类型的对象是未定义的。我目前正在检查"DataTable“对象,但我非常确定这是错误的,因为现在无论如何都会弹出窗口。
这是我的代码。
var data = new google.visualization.DataTable();
if(typeof DataTable == "undefined"){
window.alert("
我npm启动Vue项目是可以的,但我打开浏览器页面空白。
TypeError:无法读取未定义属性的“调用”
控制台视图如下,
Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (app.js:768)
at fn (app.js:142)
at Module../src/main.js (app.js:10476)[enter image description here][1]
at __webpack_require_
我正在测试nodejs API和我在karma.config.js中包含的文件
我得到了以下错误:请求未定义。然后,根据其他帖子中给出的建议,我在该文件中添加了browserify,但现在我得到了不同的错误。
` files: [
'poc/app/api.js', // file where there is require statements
'tests/sample.test.js' // my test file
],
preprocessors: {
'po
我正在使用TransformControls包(可以在这里找到:https://github.com/lucascassiano/three-transform-controls)。transform控件似乎或多或少运行得很好,但它在我的应用程序中导致了两个主要问题: 1)它不会将模式更改为旋转/缩放/等等。当它被调用时,它会给出以下错误:“未捕获TypeError:无法读取未定义的属性'setMode‘”。 2)在我的屏幕上,它显示了一条非常奇怪的红线,旁边还有小工具(请看附件的截图)。both of the problems on one picture 似乎问题出在变量的范围内
测试套件未能运行:
TypeError:无法读取对象处未定义的属性“linkingUri”。在Object处(node_modules/expo/src/Constants.js:18:29)。(节点_模块/expo/src/Logs.js:94:228) at Object。(节点_模块/expo/src/Expo.js:3:1)
有人有办法解决这个问题吗?
我和ReactJS一起工作。我有这样一个JSON文件:
const products = [
{
'_id':'1',
'name':'Airpod',
'image':'/images/airpod.png',
'describtion':
'this producted by Apple Company. made in USA',
'brand': 'Apple',