Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Axios in backend #78

Open
zoernert opened this issue Jun 27, 2023 · 0 comments
Open

Import Axios in backend #78

zoernert opened this issue Jun 27, 2023 · 0 comments

Comments

@zoernert
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant