腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
NippleJS
&
React
:
无法
读取
未定义
的
属性
“”
getBoundingClientRect
“”
当我尝试在
React
中使用
NippleJS
时,我看到了Cannot read property '
getBoundingClientRect
' of undefined。操纵杆是模态
的
,所以在初始化
NippleJS
时UI元素不存在。下面是我
的
配置: zone: this.joystick, mode: 'stati
浏览 98
提问于2017-03-14
得票数 1
2
回答
TypeError:
无法
读取
未定义
的
属性
(
读取
“
getBoundingClientRect
”)
、
、
我一直得到错误TypeError:
无法
读取
未定义
(
读取
'
getBoundingClientRect
')
的
属性
,并且不知道原因。我正在使用(Node.js)import { Card } from '..card-item'; export function CardContainer
浏览 2
提问于2021-10-06
得票数 1
1
回答
forEach使用索引获取下一项
、
我试图得到下一个元素,因为我需要这个元素
的
位置来绘制一条将两者连接起来
的
线。我得到
的
错误消息是
未定义
的
TypeError:
无法
读取
未定义
的
属性
(
读取
'
getBoundingClientRect
') Array.from
浏览 8
提问于2022-07-19
得票数 -2
1
回答
画布
无法
读取
未定义
的
属性
、
function getMousePos(canvas, evt) { return {mousePos = getMousePos(canvas, evt);}, 500);
无法
读取
未定义
的
属性
浏览 1
提问于2013-04-15
得票数 0
2
回答
错误
无法
读取
未定义
的
属性
(
读取
“配置”)。TypeError:
无法
读取
未定义
的
属性
(
读取
“配置”)
、
、
、
、
我在我
的
react
本机项目中安装了@
react
-native-community/cli-platform-android,现在我得到
的
是"error不能
读取
未定义
的
属性
(
读取
“配置”)。TypeError:
无法
读取
运行npm run android
的
未定义
属性
(
读取
“配置”)。
浏览 8
提问于2022-06-02
得票数 2
2
回答
read :
无法
读取
未定义
的
属性
“
getBoundingClientRect
”
、
、
、
、
服务器:Node.js,MongoDB,Graphql我认为这是一个时间或顺序
的
问题,带来数据和渲染它。然而,我
无法
找到解决这个问题
的
方法。。错误
无法
读取
undefined.Uncaught (承诺)
的
属性
“
getBoundingClientRect
”TypeError:
无法
读取
未定义
的
属性<
浏览 2
提问于2021-01-12
得票数 2
回答已采纳
1
回答
使用鼠标坐标制作动画时
的
requestAnimationFrame
、
动画函数,将被调用使用requestAnimationFrame(动画),但在动画函数中,我调用is_inside,当它发生
的
时候,我得到一个错误
的
is_inside函数,当我想得到wx和wy :未捕获TypeError:
无法
读取
属性
'clientX‘
的
未定义
任何想法如何解决这个问题?谢谢 targetX = event.clientX - canvas.
getBoundingClientRe
浏览 11
提问于2016-08-07
得票数 2
回答已采纳
1
回答
使用responsiveness响应pdf响应,但是当增加或减小窗口大小时,我得到了这个TypeError
、
、
、
import
React
, { useState, useRef, useEffect } from '
react
';import{ Document, Page } from '
react
-pdf/dist/esm/entry.webpack'; import '
react
-pdf/dist/esm/P
浏览 1
提问于2020-09-08
得票数 1
回答已采纳
2
回答
React
无法
读取
未定义
的
属性
使用propTypes验证道具会出现以下错误: TypeError:
无法
读取
未定义
的
属性
“func”。所讨论
的
代码位于代码段
的
底部:import ProjectItem from './Proje
浏览 2
提问于2017-10-14
得票数 13
3
回答
不能在对象中使用以下函数
、
、
、
= (e.clientY - canv.
getBoundingClientRect
().top);//Look at canv它可以工作,但仅当我使用getElementById查找画布元素,然后使用canv满足我
的
需要时。);//Look at this.canvas然后'
getBoundingClientRect
‘一点也不改变,我
的
调试器告诉我们:"Uncaught :
无法
读取
未定义
<e
浏览 11
提问于2017-10-29
得票数 0
回答已采纳
2
回答
TypeError:
无法
读取
未定义
的
属性
“string”;安装硼库
、
我安装了库,但有错误:push../node_modules/boron/modalFactory.js.module.exports :
无法
读取
未定义
的
C:/Users/m/Desktop/chrome-extension/node_modules/boron/modalF
浏览 3
提问于2019-10-21
得票数 0
6
回答
使用
React
时
的
TypeError :
无法
读取
未定义
的
属性
“firstChild”
、
、
有时,当使用
React
库(如 )时,我会得到以下错误: /~/
react
-router/~/
react
/lib/ReactMount.js
浏览 10
提问于2014-11-26
得票数 28
回答已采纳
2
回答
React
TypeError:
无法
读取
未定义
的
属性
“懒惰”
、
我遵循来为现有的
React
启用TypeScript。启动应用程序时,会出现以下错误:TypeError: Cannot read property 'lazy' of undefined import
React
, { Sus
浏览 5
提问于2020-04-01
得票数 0
1
回答
如何使用$ionicPosition.position
<button ng-click="vm.scrollToActiveElement()">Test Scroll</button>我想得到activeitem元素
的
位置return;但是,对$ionicPosition.position
的
调用会导致以下错误:
无法
读取
未定义
<e
浏览 1
提问于2016-09-14
得票数 1
回答已采纳
2
回答
odoo 12 -
无法
读取
未定义
的
属性
'
getBoundingClientRect
‘
、
、
、
:8069/web/content/352-afaa597/web.assets_common.js:3745TypeError: Cannot read property '
getBoundingClientRect
浏览 59
提问于2019-11-03
得票数 1
1
回答
使用“
react
test-renderer”-
无法
读取
未定义
的
属性
“hasOwnProperty”时出错
、
、
、
我试图在我
的
react
应用程序中实现Jest,但是当我导入
react
-test-renderer时,我得到了错误消息: TypeError:
无法
读取
未定义
的
属性
'hasOwnProperty‘。我
的
App.test.jsx文件中唯一
的
一行是: import TestRenderer from '
react
-test-renderer'; // ES6
浏览 3
提问于2019-12-20
得票数 3
1
回答
使用
react
中
的
任何外部库时,
无法
读取
未定义
的
属性
“string”
、
因此,我使用了几个外部库来响应,比如
react
-markdown、
react
-bootstrap。 at Object._tickCallback (internal/process/next_
浏览 4
提问于2017-05-22
得票数 0
1
回答
作为参数传递
的
useRef
的
模拟返回值
、
、
我有以下函数,它以
React
.useRef()作为参数。当我运行测试时,我会得到以下错误。TypeError: useRef.current.removeChild不是一个函数 这就是实现。child.value) {
浏览 7
提问于2021-11-10
得票数 1
1
回答
按承诺获取构造函数变量
、
、
、
我
无法
使用javascript和
react
在获取调用中获得构造函数变量。我希望this.state.numXLabels
的
值在.then(函数(Json)回调中),但是我得到了TypeError:
无法
读取
未定义
(…)
的
属性
‘状态’。怎样才是正确
的
方法呢?以下是相关代码:import <em
浏览 4
提问于2016-04-23
得票数 2
回答已采纳
1
回答
offsetTop、offsetLeft和
getBoundingClientRect
()不起作用
、
我
的
意思是我看不出按钮从顶部到左边
的
距离。我尝试了offsetTop和offsetLeft,得到了一个错误:"Uncaught :
无法
读取
未定义
的
的
属性
'offsetWidth‘,所以我尝试了
getBoundingClientRect
(),而我得到
的
只是另一个错误:"Uncaught : elem.
getBoundingClientRect
不是一个函数“。我将信息从组件
浏览 1
提问于2016-12-07
得票数 4
点击加载更多
相关
资讯
React Native 0.82 全面启用新架构,新版编译器 Hermes V1 登场
Visual Studio Code 1.25.1 发布,常规更新
一文了解“最好编程语言”PHP 必知的 16 个编程法则!
1000个项目中前10名的JavaScript错误介绍
PHP 发布,不在支持Windows平台的预加载功能
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券