sample-app icon indicating copy to clipboard operation
sample-app copied to clipboard

Import Axios in backend

Open zoernert opened this issue 2 years ago • 0 comments

From within my backend code I use axios for http requests. Executing the compiled APK I get the following error:

function (exports, require, module, __filename, __dirname) { import axios from './lib/axios.js';
                                                                                                         ^^^^^
                                                                                                    
 SyntaxError: Unexpected identifier
    at new Script (vm.js:79:7)
...

I know that sometimes the problem is in front of the keyboard... but the error message is not obvious for me as other imports are working fine.

zoernert avatar Jun 27 '23 11:06 zoernert