android-js / sample-app Goto Github PK
View Code? Open in Web Editor NEWSample Apps
License: MIT License
Sample Apps
License: MIT License
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.
Since Angular and Vue are supported, would React be support in the future?
.
Whenever i use androidjs build
it gives spawn java enonent error
Hello, I tried to build an APK on the sms-app but it failed with this error:
I'm on UBUNTU 20.04 LTS
NodeJS Version: 10.19.9
ppm version: 6.14.8
Data: 53971 KB :██████████████████████████████████████████████████ √
copying assets ...
updating app name...
Setting app version ...
Version Code: 1
Version Name: 1.0
updating theme ...
theme attribute not found in package.json
Using SDK: 2.1.0
Building Apk ...
events.js:174
throw er; // Unhandled 'error' event
^
Error: spawn java ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
05-09 03:06:02.312 2818 2818 D WebViewUrlWatcher: watchUrlIfNeeded, url: file:///android_asset/myapp/views/index.html
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: events.js:167
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: throw er; // Unhandled 'error' event
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: ^
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE:
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: Error: listen EADDRINUSE :::3000
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Server.setupListenHandle [as _listen2] (net.js:1286:14)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at listenInCluster (net.js:1334:12)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Server.listen (net.js:1421:7)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Object.<anonymous> (/data/data/com.androidjs.mypkg/files/myapp/node_modules/androidjs/lib/back.js:7:6)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Module._compile (internal/modules/cjs/loader.js:688:30)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Module.load (internal/modules/cjs/loader.js:598:32)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Function.Module._load (internal/modules/cjs/loader.js:529:3)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Module.require (internal/modules/cjs/loader.js:636:17)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: Emitted 'error' event at:
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at emitErrorNT (net.js:1313:8)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at process._tickCallback (internal/process/next_tick.js:63:19)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at startup (internal/bootstrap/node.js:286:19)
05-09 03:06:02.697 2818 2850 E NODEJS-MOBILE: at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.