开发者问题收集
我试图利用 Web Worker 将 png 数组合并为具有透明度的单个图像,就像 Photoshop 合并多个图层时所做的那样。我这样做的原因是我只将组合的结果保存到 indexeddb 中以供离线使用,之后我将在我的 three.js 应用中使用该图像创建纹理。场景是大约有 400 种产品,3D 平面(产品)上的纹理 - 图像是 3 个图像(产品标题、价格和产品图像)的混合。到目前为止我已经实
我正在根据 Angela Yu 的 Web 开发训练营课程在浏览器中制作待办事项列表。我的问题是,当我尝试从浏览器 (localhost:3000) 启动 Web 应用程序时,我收到错误:TypeError: Cannot read properties of undefined (reading 'length')我的代码是://jshint esversion:6const express =
我试图在 js 中做得更好,但在尝试解决这个问题时我遇到了困难,“使用 for 循环,返回传递数组的过滤版本,这样任何嵌套在包含 elem 的 arr 中的数组都已被删除。”function filteredArray(arr, elem) {let newArr = [];// Only change code below this linefor (let j=0;j<arr.length;j
当我使用 fastify 创建一个新的 API 时,在测试它时,它抛出了TypeError: Cannot read property 'length' of undefinedat next (node_modules/fastify/lib/route.js:407:32)at preParsingHookRunner (node_modules/fastify/lib/route.js:43
当我在销售机器人中使用股票命令时,我收到此信息:TypeError:无法读取未定义(读取“长度”)unhandledRejection 的属性我的代码const Discord = require("discord.js")const db = require("quick.db")const config = require("../config.json")module.exports = {
我编写了一个程序,用户提供一个 YouTube 频道 URL,作为回报,我将向用户显示其频道 ID。例如,如果有人输入如下 URL:https://youtube.com/@AndreoBee,那么我将返回其频道 ID。const axios = require('axios');async function getChannelId(url) {const channelUsername = u
我正在使用 Reactjs 并使用 nextjs 框架,现在我正在尝试使用 map 函数获取数据(url 是 -https://dummyjson.com/products)但我收到以下错误TypeError: Cannot read property 'length' of undefined这是我当前的代码import { useEffect, useState } from "react"e
我试图在 codesandbox 中编写代码,但出现错误。我必须通过三元组进行检查。TypeErrorCannot assign to read only property 'message' of object 'SyntaxError: /src/components/SearchResults.js: Unexpected token (8:10)6 | {filteredPro
我正在制作一个待办事项列表(angela yu),我试图写入一个新的数据库,但我一直收到错误。这是错误:C:\Users\tunji\Desktop\webdev\todolist-v2-starting-files\node_modules\mongoose\lib\model.js:3519for (let i = 0; i < error.writeErrors.length; ++i) {
我正在开发我的第一个全栈 MERN 应用程序,它允许用户将多个位置添加到数组中。尝试映射数组以显示用户的地点数量。代码运行良好,直到我使用.length,然后它崩溃了。import React from 'react';import UserItem from './UserItem';import Card from '../../shared/components/UIElements/Car
我尝试自己编写一个脚本,做了大量研究并尝试了很多代码。此处提出的问题中的方法似乎很有希望,但我收到了一个无法解决的错误。问题:我想将工作表“Wunschliste”中某一行的所有数据复制到工作表“Bestellt”,其中工作表“Wunschliste”中的列 A2:A 标记为“2 bestellt”(通过下拉列表填写)。应删除工作表“Wunschliste”中标记为“2 bestellt”的所有数
我正在使用 Jest 测试 React 组件。我正在尝试模拟来自其他依赖项的函数。依赖项中的函数应该返回一个数组,但它在控制台上显示未定义。下面的文件是 tsx 文件,当我单击按钮时,它应该调用依赖项函数来获取框架列表。ExitAppButton.tsx:import React, { useContext, useState } from 'react';import { TestContext
有人知道这个错误的原因吗?warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-worksTypeError: Cannot read properties of null (reading 'length')a
在 Google Apps Script 中运行某些代码时,我收到以下错误消息。我不明白行/列引用 Code:46:18。它似乎指向列数太少的行或行数太少的进程。我猜我没有正确解释引用。TypeError: Cannot set property 'format' of undefinedat processInbox(processInbox Code:46:18)我所有代码的第 46 行是这样
你好,vuejs 用户社区我遇到了一个无法解决的问题:目前我正在使用 vuejs 2.x,我的操作系统是 Windows 11。在 yarn install 或 npm install 之后,此源控制台会给我一个错误,如下所示。在此处输入图片描述[Vue warn]:设置错误:“TypeError:无法读取未定义的属性(读取‘length’)”我正在使用vue/composition-api 版本