Everytime I try to build a PWA it gives me an error, apk , ios, ionic, and web builds are fine.
How do I get PWA builds to work correctly?
Everytime I try to build a PWA it gives me an error, apk , ios, ionic, and web builds are fine.
How do I get PWA builds to work correctly?
It works without problems, check the application settings
What setting would cause it to not build?
have check the app setting and ensure all meta data is filled in?
then please check also error log to get some idea what specific causing it
This was the LOG:
[[V2] Clear builder folder]:
=====[start]=====
No output
=====[end]=====
[[V2] Remove sources folder]:
=====[start]=====
No output
=====[end]=====
[[V2] Remove PWA folder]:
=====[start]=====
No output
=====[end]=====
[[V2] Copy resources to app source folder]:
=====[start]=====
Array
(
[icon.png] => icon.png
[default] => default
)
=====[end]=====
[[V2] Copy files from template to source]:
=====[start]=====
No output
=====[end]=====
[[V2] Add PWA support to package.json and main.ts]:
=====[start]=====
No output
=====[end]=====
[[V2] Set widget id]:
=====[start]=====
No output
=====[end]=====
[[V2] Set fonts]:
=====[start]=====
No output
=====[end]=====
[[V2] Set colors]:
=====[start]=====
No output
=====[end]=====
[[V2] Set colors]:
=====[start]=====
No output
=====[end]=====
[[V2] Set start page]:
=====[start]=====
No output
=====[end]=====
[[V2] Create Environments]:
=====[start]=====
No output
=====[end]=====
afterSaveFirebaseFilesfired on Sharkbait Radio
[[V2] Save firebase files]:
=====[start]=====
No output
=====[end]=====
Array
(
[package_info] => Array
(
[name] => Core Module
[code] => 01_core_component_moxly
[type] => system
[category] => system_ionic
[class] => CoreModuleClass
[description] => Core module. Could not be removed. Used for initial source build.
[author] => Moxly Team
[email] => support@moxly.com
[version] => 1.0.0
[release] => 11.12.2021
[component] =>
[free_to_distribute] => 1
[run_command] => Array
(
[0] => npm install @ngx-translate/core@14.0.0 @ngx-translate/http-loader@7.0.0
[1] => npm install @capacitor-community/http
[2] => npm install @awesome-cordova-plugins/core --save
[3] => npm install @ionic-native/background-mode
[4] => npm install @awesome-cordova-plugins/core@6.2.0
[5] => npm install @capacitor/camera@4.1.4
[6] => npm install @capacitor/filesystem@4.1.4
[7] => npm install @ionic/pwa-elements
[8] => npm install hammerjs@2.0.8
[9] => npm install ngx-image-cropper@6.2.2
[10] => npm install @capacitor/local-notifications@4.1.4
[11] => npm install @capacitor/push-notifications@4.1.2
[12] => npm install @capacitor-community/fcm@3.0.2
[13] => npm install @capacitor/clipboard@4.1.0
[14] => npm install @capacitor/splash-screen@4.1.3
[15] => npm i animate.css
[16] => npm i youtube-player
)
[dependencies] => Array
(
[0] => "animate.css": "^4.1.1"
[1] => "@capacitor/filesystem": "^4.1.4"
[2] => "@ngx-translate/core": "^14.0.0"
[3] => "@ngx-translate/http-loader": "^7.0.0"
[4] => "@awesome-cordova-plugins/core": "^6.2.0"
[5] => "@capacitor/local-notifications": "^4.1.4"
[6] => "@capacitor/push-notifications": "^4.1.2"
[7] => "@capacitor-community/fcm": "^3.0.2"
[8] => "hammerjs": "^2.0.8"
[9] => "ngx-image-cropper": "^6.2.2"
[10] => "@capacitor-community/http": "^1.4.1"
[11] => "@capacitor/splash-screen": "^4.1.3"
[12] => "@capacitor/clipboard": "^4.1.0"
[13] => "@capacitor/camera": "^4.1.4"
)
[devDependencies] => Array
(
)
)
[name] => Core Module
[code] => 01_core_component_moxly
[type] => system
[category] => system_ionic
[description] => Core module. Could not be removed. Used for initial source build.
[position] => content
[image] =>
)
Array
(
[package_info] => Array
(
[name] => Firebase CloudMessage Module
[code] => 05_fcm
[type] => system
[category] => system_ionic
[class] => FCMModuleClass
[description] => Firebase CloudMessage module. Could not be removed. Used for Firebase Push messages.
[author] => Moxly Team
[email] => support@moxly.io
[version] => 1.0.0
[release] => 11.12.2021
[component] =>
[free_to_distribute] => 1
[run_command] => Array
(
)
[dependencies] => Array
(
)
[devDependencies] => Array
(
)
)
[name] => Firebase CloudMessage Module
[code] => 05_fcm
[type] => system
[category] => system_ionic
[description] => Firebase CloudMessage module. Could not be removed. Used for Firebase Push messages.
[position] => content
[image] =>
)
Array
(
[package_info] => Array
(
[name] => Modal and popover page support
[code] => 06_modal
[type] => system
[category] => system_ionic
[class] => ModalModuleClass
[description] => Modal support module. Could not be removed. Used for open page in modal or popover mode.
[author] => Moxly Team
[email] => support@moxly.io
[version] => 1.0.0
[release] => 11.12.2021
[component] =>
[free_to_distribute] => 1
[run_command] => Array
(
)
[dependencies] => Array
(
)
[devDependencies] => Array
(
)
)
[name] => Modal and popover page support
[code] => 06_modal
[type] => system
[category] => system_ionic
[description] => Modal support module. Could not be removed. Used for open page in modal or popover mode.
[position] => content
[image] =>
)
Array
(
[package_info] => Array
(
[name] => Statusbar support
[code] => 06_statusbar
[type] => system
[category] => system_ionic
[class] => StatusbarModuleClass
[description] => Statusbar support module. Could not be removed. Used for open page as menu.
[author] => Moxly Team
[email] => support@moxly.io
[version] => 1.0.0
[release] => 11.12.2021
[component] =>
[free_to_distribute] => 1
[run_command] => Array
(
)
[dependencies] => Array
(
)
[devDependencies] => Array
(
)
)
[name] => Statusbar support
[code] => 06_statusbar
[type] => system
[category] => system_ionic
[description] => Statusbar support module. Could not be removed. Used for open page as menu.
[position] => content
[image] =>
)
Array
(
[package_info] => Array
(
[name] => Menu page support
[code] => 07_menu
[type] => system
[category] => system_ionic
[class] => MenuModuleClass
[description] => Menu support module. Could not be removed. Used for open page as menu.
[author] => Moxly Team
[email] => support@moxly.io
[version] => 1.0.0
[release] => 11.12.2021
[component] =>
[free_to_distribute] => 1
[run_command] => Array
(
)
[dependencies] => Array
(
)
[devDependencies] => Array
(
)
)
[name] => Menu page support
[code] => 07_menu
[type] => system
[category] => system_ionic
[description] => Menu support module. Could not be removed. Used for open page as menu.
[position] => content
[image] =>
)
afterAppModuleCreate fired on Sharkbait Radio
[FCMModuleClass::afterAppModuleCreate start]
[FCMModuleClass::afterAppModuleCreate end]
[Apply components to sources]:
=====[start]=====
No output
=====[end]=====
afterCopySources fired on Sharkbait Radio
[Copy components to sources]:
=====[start]=====
No output
=====[end]=====
[Make Routes file]:
=====[start]=====
Array
(
[0] => { path: 'network-error', loadChildren: () => import('./network-error/network-error.module').then( m => m.NetworkErrorPageModule)}
[1] => { path: 'application-blocked', loadChildren: () => import('./application-blocked/application-blocked.module').then( m => m.ApplicationBlockedPageModule)}
[2] => { path: 'start', loadChildren: () => import('./start/start.module').then( m => m.StartPageModule)}
[3] => {path: '', redirectTo: 'start', pathMatch: 'full'}
[4] => {/*Login Screen, page id 241*/ path: 'page241', loadChildren: () => import('./page241/page241.module').then( m => m.Page241PageModule)}
[5] => {/*Registration Screen, page id 242*/ path: 'page242', loadChildren: () => import('./page242/page242.module').then( m => m.Page242PageModule)}
[6] => {/*Home Page, page id 243*/ path: 'page243', loadChildren: () => import('./page243/page243.module').then( m => m.Page243PageModule)}
)
=====[end]=====
Array
(
[0] => "animate.css": "^4.1.1"
[1] => "@capacitor/filesystem": "^4.1.4"
[2] => "@ngx-translate/core": "^14.0.0"
[3] => "@ngx-translate/http-loader": "^7.0.0"
[4] => "@awesome-cordova-plugins/core": "^6.2.0"
[5] => "@capacitor/local-notifications": "^4.1.4"
[6] => "@capacitor/push-notifications": "^4.1.2"
[7] => "@capacitor-community/fcm": "^3.0.2"
[8] => "hammerjs": "^2.0.8"
[9] => "ngx-image-cropper": "^6.2.2"
[10] => "@capacitor-community/http": "^1.4.1"
[11] => "@capacitor/splash-screen": "^4.1.3"
[12] => "@capacitor/clipboard": "^4.1.0"
[13] => "@capacitor/camera": "^4.1.4"
[14] => "howler": "^2.2.3"
)
Array
(
)
afterAddDependencies fired on Sharkbait Radio
[Add dependecies to package.json]:
=====[start]=====
Array
(
[0] => "animate.css": "^4.1.1"
[1] => "@capacitor/filesystem": "^4.1.4"
[2] => "@ngx-translate/core": "^14.0.0"
[3] => "@ngx-translate/http-loader": "^7.0.0"
[4] => "@awesome-cordova-plugins/core": "^6.2.0"
[5] => "@capacitor/local-notifications": "^4.1.4"
[6] => "@capacitor/push-notifications": "^4.1.2"
[7] => "@capacitor-community/fcm": "^3.0.2"
[8] => "hammerjs": "^2.0.8"
[9] => "ngx-image-cropper": "^6.2.2"
[10] => "@capacitor-community/http": "^1.4.1"
[11] => "@capacitor/splash-screen": "^4.1.3"
[12] => "@capacitor/clipboard": "^4.1.0"
[13] => "@capacitor/camera": "^4.1.4"
[14] => "howler": "^2.2.3"
)
Array
(
)
=====[end]=====
[ModalModuleClass] afterCreatePages fired on Sharkbait Radio
afterAppModuleCreate fired on Sharkbait Radio
afterAppModuleCreate fired on Sharkbait Radio
[[V2] Create pages done]:
=====[start]=====
No output
=====[end]=====
[[V2] Copy to Builder folder]:
=====[start]=====
No output
=====[end]=====
[[V2] Build Ionic PWA]:
=====[start]=====
=====[end]=====
[[V2] Copy PWA dir back to app sources folder]:
=====[start]=====
No output
=====[end]=====
file_get_contents(/var/www/www-root/data/www/nullkode.in/public/storage/application/55-ozba86rjls/pwa/index.html): Failed to open stream: No such file or directory0/var/www/www-root/data/www/nullkode.in/app/Models/BuilderNew.php1327Array
(
[0] => Array
(
[function] => handleError
[class] => Illuminate\Foundation\Bootstrap\HandleExceptions
[type] => ->
)
[1] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/app/Models/BuilderNew.php
[line] => 1327
[function] => file_get_contents
)
[2] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/app/Models/BuilderNew.php
[line] => 216
[function] => setAppManifestPWA
[class] => App\Models\BuilderNew
[type] => ->
)
[3] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/app/Http/Controllers/BuildController.php
[line] => 708
[function] => run
[class] => App\Models\BuilderNew
[type] => ->
)
[4] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/app/Console/Commands/BuildApplication.php
[line] => 113
[function] => FirstBuldPWA
[class] => App\Http\Controllers\BuildController
[type] => ::
)
[5] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
[line] => 36
[function] => handle
[class] => App\Console\Commands\BuildApplication
[type] => ->
)
[6] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Container/Util.php
[line] => 40
[function] => Illuminate\Container\{closure}
[class] => Illuminate\Container\BoundMethod
[type] => ::
)
[7] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
[line] => 93
[function] => unwrapIfClosure
[class] => Illuminate\Container\Util
[type] => ::
)
[8] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
[line] => 37
[function] => callBoundMethod
[class] => Illuminate\Container\BoundMethod
[type] => ::
)
[9] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Container/Container.php
[line] => 653
[function] => call
[class] => Illuminate\Container\BoundMethod
[type] => ::
)
[10] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Console/Command.php
[line] => 136
[function] => call
[class] => Illuminate\Container\Container
[type] => ->
)
[11] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/symfony/console/Command/Command.php
[line] => 298
[function] => execute
[class] => Illuminate\Console\Command
[type] => ->
)
[12] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Console/Command.php
[line] => 121
[function] => run
[class] => Symfony\Component\Console\Command\Command
[type] => ->
)
[13] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/symfony/console/Application.php
[line] => 1028
[function] => run
[class] => Illuminate\Console\Command
[type] => ->
)
[14] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/symfony/console/Application.php
[line] => 299
[function] => doRunCommand
[class] => Symfony\Component\Console\Application
[type] => ->
)
[15] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/symfony/console/Application.php
[line] => 171
[function] => doRun
[class] => Symfony\Component\Console\Application
[type] => ->
)
[16] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Console/Application.php
[line] => 94
[function] => run
[class] => Symfony\Component\Console\Application
[type] => ->
)
[17] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php
[line] => 129
[function] => run
[class] => Illuminate\Console\Application
[type] => ->
)
[18] => Array
(
[file] => /var/www/www-root/data/www/nullkode.in/artisan
[line] => 37
[function] => handle
[class] => Illuminate\Foundation\Console\Kernel
[type] => ->
)
)```
I replaced the default build with one that has a login, register and homepage. Looking at the log it looks like the old one was needed.
The app settings META data is all filled in:
And I’m not using a custom domain.
Hi.
Try to reinstall Ionic SDK.
I reinstalled SDK and still same issue.
can u share error log in server? maybe need to increase memory limit
I am hosting on your servers, nwihost
make an administrator access and send a request to our support