1. TypeError: RequestInit: duplex option is required when sending a body.
    需要在请求中添加duplex: 'half',表示请求是双工的,即可以读取和写入。
    js async function pipeUrlToUrlwithFetch(url1, url2) { const getResponse = await fetch(url1); const options = { method: 'POST', body: getResponse.body, duplex: 'half', }; const postResponse = await fetch(url2, options); return postResponse.json(); }
    另一方法是在添加:export const runtime = "edge"。但是这样会导致webpack打包时会被认定为浏览器,而当浏览器中出现一些只能后台调用的内容时,
    mysql2会找不到包,如果服务不需要调用特殊库,可以选择此项。

2.启动报以下错误

  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

查看node版本号,切换成16及以下的版本。

在线绘制SVG https://editor.method.ac/

生成乐谱SVG https://www.kuaiyuepu.com/jianpu/qyiBa1mPa.html https://www.kuaiyuepu.com/static/cdn/js/song_5469f07215.js