TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be o
根据Node,FileHandle.read()接受两种类型的参数,多个对象或一个对象。然而,当我传递对象时,我得到:TypeError [ERR_INVALID_ARG_TYPE]: The "buffer" argument must be an instance of Buffer,TypedArray, or DataView.Docs引用是用于常规读取的和用于"
我希望在填写文本输入并回答html中的所有问题后,一旦有人单击"create“按钮,就使用json创建pokemon数据的保存文件,但由于某种原因,我得到了这个错误。(node:30348) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argumentmust be of type string or an instance of Buf