android-js / androidjs

Platform to build android app using node js
MIT License
466 stars 109 forks source link

ReferenceError: fetch is not defined (at backend) ??? #315

Open CelularBat opened 6 months ago

CelularBat commented 6 months ago

Describe the bug I made app in NodeJS. I've tested it in browser and everything works. After packing it into .apk my backend throws this error, when trying to use fetch(). Why?? I don't understand it, I'm using nodeJS v20. FetchAPI was implemented in v18. Does compiled backend in Android uses another nodeJS version than the app was created with?

Expected behavior no error.