client.bucket.createBucket return fetch is not defined
Zhang-Tianxu opened this issue · comments
1.2.0:
Environment:
- OS (e.g. from /etc/os-release): windows 11 professional
- Install tools: npm
- Others: node version 16.18.1, npm version 9.2.0
What happened: index.js
in examples/nodejs-file-management
work properly, but storage.js
not
What you expected to happen: example work properly, bucket can be created at least
Have you tried the latest version: yes
How to reproduce it (as minimally and precisely as possible):
`cd examples/nodejs-file-management` -> `npm install` -> `node storage.js`
Logs (paste a small part showing an error (< 10 lines) or link a pastebin, gist, etc. containing more of the log file):
Config (you can paste only the changes you've made):
node command runtime flags:
Anything else we need to know:
Please upgrade to Node.js v17.5.0 or higher to enable Fetch API support
Can you share the link to your codes? May need to look the codes as a whole
@Zhang-Tianxu do you still have any problem? if no we will close this issue. thx