我有一个错误,只发生在我的Github操作工作流中(当我在本地运行Jest脚本时,这很好)。我只找到了和,但是错误仍然存在。对下一步要查什么有什么想法吗?/node_modules/mongodb-connection-string-url/node_modules/whatwg-url/dist/encoding.js:2:21)
at Object/
我正在使用Node 14,带有express v4.16.3和类型记录(v4.7.4);在向项目中添加mongoose (v6.5.2)之后,逻辑代码运行良好,但大多数由jest运行的测试(v26.4.2)都失败了,错误消息如下:
ReferenceError: TextEncoder is not defined.从node_modules/mongodb-connection-string-url/node_modules/whatwg-url<
我在VPS上运行我的项目,并得到错误,但http://localhost:3000/它工作,尝试卸载和安装npm mongodb,但它不工作。/Rest_api_2/node_modules/whatwg-url/dist/encoding.js:2
ReferenceError: TextEncoder is not defi
我试图让一个简单的MERN应用程序在一个Ubuntu wsl2实例上工作。我正在跟踪这个。这是我在server.js中拥有的代码(它与指南中的代码略有不同,因为body解析器是不推荐的。使用来自这个的建议,我已经更改了这些方法)。/home/NAME/learnreact/MERN-demo/node_modules/whatwg-url/dist/encoding.js:2
const u
在启动我的码头容器时,我遇到了以下错误:server_1 | /usr/src/app/node_modules/whatwg-url/lib/encoding.js:2 console.log(`Server is listening on port ${process.env.API_PORT}`)我尝试了什么(但没有成功):我更新了以下文