为什么这不是一个函数?在./index.js中导入./src/index.js很好,但是尝试在./src/Client.js中导入就不行了。这不是什么“无效的文件路径”,因为我没有任何错误,它会自动填充require函数。 下面是我的代码: ./index.js const index = require("./src/index.js") and the full path (D:
我发现了一些代码,可以让我创建一个石头剪刀游戏。然而,它确实需要一些更新,所以我尝试更新它。我一直在.awaitReactions is not a function中得到这个错误。.then(collected => collected.first() && collected.first().emoji.name);它只是发送嵌入,让用户对其中一个表情作出反应
我正在用打字本尝试createAsyncThunk。进入catch块时,我将返回rejectwithValue(param)。但在console.log上(动作)-我犯了错误- message: "rejectWithValue is not a function" stack: "TypeError: rejectWithValue is not a function\n at http://localhost:3000/main.105756d7251616c1b