Comments (18)
I messed the App-ID up. Step 2 is not necessary and step 3 should work now. I also included the lib folder in this repository and updated the README.
from cordova-example.
Oh looks like its inside /www directory
from cordova-example.
Oh yeah, sorry, i will change the README
from cordova-example.
ahh Im handing over an hour trying to figure out current problem. App is running okay however screen is empty. It fails on a first System call. Ive fixed wrong paths:
<script type="text/javascript" src="lib/typeorm/Reflect.js"></script>
<script type="text/javascript" src="lib/typeorm/system.src.js"></script>
But problem remains, still trying to figure out a problem. BTW how can I run app and see results of console.log in terminal?
from cordova-example.
I'm sorry to hear, that the example doesn't work for you.
The paths should be fine if you copy Reflect.js
and system.src.js
into the www/lib
folder.
There is how you can inspect android and iOS.
from cordova-example.
Okay I found the way how to print things.
from cordova-example.
I don't think its something with me =)
from cordova-example.
document.addEventListener("deviceready", function () {
document.writeln("Hello world");
console.log("Reflect:");
console.log(Reflect);
console.log("System:");
console.log(System);
console.log("-----");
prints me:
09-27 09:00:45.845: I/chromium(3782): [INFO:CONSOLE(4)] "Reflect:", source: file:///android_asset/www/lib/typeorm/script.js (4)
09-27 09:00:45.855: D/SystemWebChromeClient(3782): file:///android_asset/www/lib/typeorm/script.js: Line 5 : [object Object]
09-27 09:00:45.855: I/chromium(3782): [INFO:CONSOLE(5)] "[object Object]", source: file:///android_asset/www/lib/typeorm/script.js (5)
09-27 09:00:45.855: D/SystemWebChromeClient(3782): file:///android_asset/www/lib/typeorm/script.js: Line 6 : System:
09-27 09:00:45.865: I/chromium(3782): [INFO:CONSOLE(6)] "System:", source: file:///android_asset/www/lib/typeorm/script.js (6)
09-27 09:00:45.905: D/SystemWebChromeClient(3782): file:///android_asset/www/lib/typeorm/script.js: Line 7 : Uncaught ReferenceError: System is not defined
09-27 09:00:45.915: I/chromium(3782): [INFO:CONSOLE(7)] "Uncaught ReferenceError: System is not defined", source: file:///android_asset/www/lib/typeorm/script.js (7)
from cordova-example.
Okay maybe console.log Reflect
isnt a good idea because this object is already presents in javascript even without reflect metadata... But the fact is that it does not see systemjs's System
for some reason
from cordova-example.
Im giving up. Did you actually run this example? Because I found bugs and it obviously cannot be run with them. Please check this example on your machine
from cordova-example.
I haven't for a while
from cordova-example.
I updated the example to the newest version of TypeORM. The screenshot below is from my Moto G5 running Android 7.0 and the app was created using cordova 7.0.1
from cordova-example.
Okay I just pulled and still have a problem. I guess its something with my emulator. I'll try to install android 7 emulator
from cordova-example.
What version are you running in the emulator?
from cordova-example.
4.4.x
from cordova-example.
Can I close this issue? And do you think it's a good idea to include the libraries in the www/lib
folder?
from cordova-example.
I downloaded and tried 7 emulator but it crashes all the time. I don't know why. Im going to download another emulator and check it before closing this issue.
And do you think it's a good idea to include the libraries in the www/lib folder?
No, I don't think so, it does not look as a good idea.
Also, when are you be able to setup ionic example? Im planning to make a final release today or tomorrow and publish links on reddit, it will be really great if we'll have ionic example for those who are interested in it.
from cordova-example.
Ionic example is online
And the libraries are removed
from cordova-example.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-example.