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

cordova run android --device - app.js #8

Open
Jahrenski opened this issue Nov 30, 2017 · 4 comments
Open

cordova run android --device - app.js #8

Jahrenski opened this issue Nov 30, 2017 · 4 comments

Comments

@Jahrenski
Copy link

I tried to run the demo on my android device but it gives me an error.
Failed to load resource: net::ERR_FILE_NOT_FOUND app.js

npm i
npm run build

cordova platform add android
cordova plugin add cordova-plugin-mauron85-background-geolocation
cordova build android

cordova run android --device

blank page.

@Jahrenski
Copy link
Author

Just add in the documentation that you need to run
npm run compile after you run npm run build

Then it works.

@mauron85
Copy link
Owner

npm run build will run npm compile itself. Not sure why you have this problem.

@Jahrenski
Copy link
Author

I'm running from windows.

I had to change the script build line from
"npm run clean && npm run copy && NODE_ENV=production npm run compile"
to
"npm run clean && npm run copy && SET NODE_ENV=production npm run compile"

I guess that part didn't work on its own.

@mauron85
Copy link
Owner

mauron85 commented Nov 30, 2017

oh in case of windows you're probably right. probably it failed becuase of missing SET. that explains why you had to run npm run compile as additional step.

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

2 participants