(node:12339) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
Error: Invalid environment: global fetch not defined
at file:///usr/local/ChatGPT-wechat-bot-master/node_modules/chatgpt/src/fetch.ts:6:9
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
node v16.17
npm run dev
(node:12339) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time (Use
node --trace-warnings ...
to show where the warning was created) Error: Invalid environment: global fetch not defined at file:///usr/local/ChatGPT-wechat-bot-master/node_modules/chatgpt/src/fetch.ts:6:9 at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:533:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12)