saltcorn: mobile production: multiple errors, even on saltcorn.com (beta 3)
Describe the bug
Tried the new admin/build-mobile-app but it raised some errors:
First attempt:
Build Result
Unable to build the app:
,
added 491 packages, and audited 492 packages in 29s
51 packages are looking for funding
run `npm fund` for details
5 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
,npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm notice
npm notice New minor version of npm available! 8.1.2 -> 8.19.2
npm notice Changelog:
npm notice Run `npm install -g npm@8.19.2` to update!
npm notice
,
> @saltcorn/mobile-builder@0.7.4-beta.0 build
> webpack --mode development "--env" "plugins=[{\"id\":3,\"name\":\"markdown\",\"source\":\"npm\",\"location\":\"@saltcorn/markdown\",\"version\":\"0.1.2\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":5,\"name\":\"ckeditor4\",\"source\":\"npm\",\"location\":\"@saltcorn/ckeditor4\",\"version\":\"0.1.8\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":6,\"name\":\"toc\",\"source\":\"npm\",\"location\":\"@saltcorn/toc\",\"version\":\"0.1.2\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":7,\"name\":\"any-bootstrap-theme\",\"source\":\"npm\",\"location\":\"@saltcorn/any-bootstrap-theme\",\"version\":\"0.3.6\",\"deploy_private_key\":null,\"configuration\":{\"fluid\":true,\"theme\":\"flatly\",\"toppad\":2,\"css_url\":null,\"in_card\":false,\"css_file\":null,\"fixedTop\":false,\"menu_style\":\"Side Navbar\",\"colorscheme\":\"navbar-dark bg-primary\",\"css_integrity\":null,\"backgroundColor\":\"#ffffff\"}},{\"id\":12,\"name\":\"html\",\"source\":\"npm\",\"location\":\"@saltcorn/html\",\"version\":\"0.1.8\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":13,\"name\":\"fullcalendar\",\"source\":\"npm\",\"location\":\"@saltcorn/fullcalendar\",\"version\":\"0.2.1\",\"deploy_private_key\":null,\"configuration\":null}]" "--env" "output=/root/mobile_app_build/www/js/"
,/usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2892
throw new Error(
^
Error: Entry ckeditor4 depends on @saltcorn/html, but this entry was not found
at Compilation.seal (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2892:13)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compiler.js:1174:20
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2754:4
at _next2 (eval at create (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), :25:1)
at eval (eval at create (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), :52:1)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:385:11
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2830:7
at Object.each (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2850:39)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:361:18
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2830:7
at Object.each (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2850:39)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:51:16
at Hook.eval [as callAsync] (eval at create (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), :48:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/Hook.js:18:14)
at Compilation.finish (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2711:28)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compiler.js:1169:19
,, Error: ENOENT: no such file or directory, unlink
'/root/mobile_app_build/www/scdb.sqlite'
Code: ENOENT
,
> @saltcorn/mobile-app@0.7.4-beta.0 add-platform
> cordova platform add "android"
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Using cordova-fetch for cordova-android@^10.1.2
,Failed to fetch platform cordova-android@^10.1.2
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: Error: Cannot find module 'cordova-android/package.json' from '/root/mobile_app_build'
,
> @saltcorn/mobile-app@0.7.4-beta.0 build-app
> cordova build "android"
You have been opted out of telemetry. To change this, run: cordova telemetry on.
,No platforms added to this project. Please use `cordova platform add `.
Second attempt:
Build Result
Unable to build the app:
,
added 491 packages, and audited 492 packages in 6s
51 packages are looking for funding
run `npm fund` for details
5 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
,npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
,
> @saltcorn/mobile-builder@0.7.4-beta.0 build
> webpack --mode development "--env" "plugins=[{\"id\":3,\"name\":\"markdown\",\"source\":\"npm\",\"location\":\"@saltcorn/markdown\",\"version\":\"0.1.2\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":5,\"name\":\"ckeditor4\",\"source\":\"npm\",\"location\":\"@saltcorn/ckeditor4\",\"version\":\"0.1.8\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":6,\"name\":\"toc\",\"source\":\"npm\",\"location\":\"@saltcorn/toc\",\"version\":\"0.1.2\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":7,\"name\":\"any-bootstrap-theme\",\"source\":\"npm\",\"location\":\"@saltcorn/any-bootstrap-theme\",\"version\":\"0.3.6\",\"deploy_private_key\":null,\"configuration\":{\"fluid\":true,\"theme\":\"flatly\",\"toppad\":2,\"css_url\":null,\"in_card\":false,\"css_file\":null,\"fixedTop\":false,\"menu_style\":\"Side Navbar\",\"colorscheme\":\"navbar-dark bg-primary\",\"css_integrity\":null,\"backgroundColor\":\"#ffffff\"}},{\"id\":12,\"name\":\"html\",\"source\":\"npm\",\"location\":\"@saltcorn/html\",\"version\":\"0.1.8\",\"deploy_private_key\":null,\"configuration\":null},{\"id\":13,\"name\":\"fullcalendar\",\"source\":\"npm\",\"location\":\"@saltcorn/fullcalendar\",\"version\":\"0.2.1\",\"deploy_private_key\":null,\"configuration\":null}]" "--env" "output=/root/mobile_app_build/www/js/"
,/usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2892
throw new Error(
^
Error: Entry ckeditor4 depends on @saltcorn/html, but this entry was not found
at Compilation.seal (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2892:13)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compiler.js:1174:20
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2754:4
at _next2 (eval at create (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), :25:1)
at eval (eval at create (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), :52:1)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:385:11
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2830:7
at Object.each (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2850:39)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:361:18
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2830:7
at Object.each (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/neo-async/async.js:2850:39)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:51:16
at Hook.eval [as callAsync] (eval at create (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), :48:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/tapable/lib/Hook.js:18:14)
at Compilation.finish (/usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compilation.js:2711:28)
at /usr/local/lib/node_modules/@saltcorn/cli/node_modules/webpack/lib/Compiler.js:1169:19
,Success: Command execution successfully
,
,
> @saltcorn/mobile-app@0.7.4-beta.0 add-platform
> cordova platform add "android"
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Using cordova-fetch for cordova-android@^10.1.2
,Failed to fetch platform cordova-android@^10.1.2
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: Error: Cannot find module 'cordova-android/package.json' from '/root/mobile_app_build'
,
> @saltcorn/mobile-app@0.7.4-beta.0 build-app
> cordova build "android"
You have been opted out of telemetry. To change this, run: cordova telemetry on.
,No platforms added to this project. Please use `cordova platform add `.
I don’t get if the second attempt is successful or failed 😄
BTW, html plugin is installed.
But it seems I can’t update it:
May be it’s related?
PS:
Also happens on saltcorn (mobiletest):

About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 33 (16 by maintainers)
Real soon now
On Fri, 2 Dec 2022, 15:16 Philippe Manzano, @.***> wrote:
Hi j2l, thanks for this, I will take a look at it.