pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.69k stars 282 forks source link

Error generating windows package #2309

Closed maharjanmanish9843 closed 2 years ago

maharjanmanish9843 commented 2 years ago

I received the following error when generating a package for https://gaadibook.com.np

Error: Failed. Status code 400, Error: , Details: {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-cc608c301f666d4f9c830034c0cd1d66-7a3352e1491d744e-00","errors":{"options":["The options field is required."],"$.manifest.shortcuts[1].icons[0]":["The JSON value could not be converted to Microsoft.PWABuilder.Windows.Chromium.Models.WebManifestIcon. Path: $.manifest.shortcuts[1].icons[0] | LineNumber: 0 | BytePositionInLine: 2172."]}}

ghost commented 2 years ago

Hello maharjanmanish9843, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

jgw96 commented 2 years ago

Hello! So the reason this is happening is because you have invalid JSON in your app for the second shortcut. Heads up that your manifest also has non-standard fields (the splash field) and it looks as if the name of the application is also different in the manifest compared to the actual name. If you change your second shortcut to be valid like your first shortcut, you will be good to go! However, I would highly recommend you take a second look at your web manifest and make sure the icons, name etc are what you want them to be. image