Skip to content

Import Axios in backend #78

@zoernert

Description

@zoernert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions