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

Some app errors #6

Closed
roberttodor opened this issue Jan 24, 2020 · 2 comments
Closed

Some app errors #6

roberttodor opened this issue Jan 24, 2020 · 2 comments

Comments

@roberttodor
Copy link

I create a simple project and build the apk with Phonegap.
I installed the app in my android device and found this issues:
Failed to load resource: net::ERR_FILE_NOT_FOUND pginit.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND require.js

Serving the app into a browser, it looks to work fine but I tried to stop server and Submit. After that, I started server again, but the item dosen't Sync automatically. Also the Sync Now and Discard buttons fails with this error :
Uncaught ReferenceError: require is not defined
at HTMLButtonElement.onclick ((index):1)

@roberttodor roberttodor changed the title Phonegap fails Some app errors Jan 24, 2020
@sheppard
Copy link
Member

Thanks for reporting this. It looks like there are still a couple of places in the project template that still expect the old RequireJS configuration, even when NPM support is enabled. I will look at fixing this for 1.2.1. In the meantime, a temporary workaround is to disable NPM support when creating the project.

@sheppard sheppard transferred this issue from wq/wq.app Sep 2, 2020
sheppard added a commit to wq/xlsform-converter that referenced this issue Sep 2, 2020
sheppard added a commit to wq/xlsform-converter that referenced this issue Sep 2, 2020
sheppard added a commit to wq/wq-django-template that referenced this issue Sep 2, 2020
@sheppard
Copy link
Member

sheppard commented Sep 2, 2020

I fixed the issues with the Sync Now and Discard buttons when running an npm-based app in the browser. I published the fix in wq.start 1.2.1. However, the issues with PhoneGap remain unresolved - see wq/wq.app#121 for more info.

@sheppard sheppard closed this as completed Sep 2, 2020
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