Package failed

In the develop environment, it works well. But when I package and install it, get -1 error.


I’ve tried to change the ccx suffix to zip and unzip it, but failed.
Here is the unzip fail error:

and the manifest:

{
  "id": "cute_guyver_swatches",
  "name": "hello_world_swatches",
  "version": "1.0.0",
  "main": "index.html",
  "host": [
    {
      "app": "PS",
      "minVersion": "23.0.0"
    }
  ],
  "manifestVersion": 5,
  "entrypoints": [
    {
      "type": "panel",
      "id": "cute_helmet_swatches",
      "label": {
        "default": "cute_helmet_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_helmet_line_swatches",
      "label": {
        "default": "cute_helmet_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_hair_swatches",
      "label": {
        "default": "cute_hair_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_swatches",
      "label": {
        "default": "guyver_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_line_swatches",
      "label": {
        "default": "guyver_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_deco_swatches",
      "label": {
        "default": "guyver_deco_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_deco_line_swatches",
      "label": {
        "default": "guyver_deco_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    }
  ],
  "icons": [
    {
      "width": 23,
      "height": 23,
      "path": "icons/dark.png",
      "scale": [
        1,
        2
      ],
      "theme": [
        "darkest",
        "dark",
        "medium"
      ]
    },
    {
      "width": 23,
      "height": 23,
      "path": "icons/light.png",
      "scale": [
        1,
        2
      ],
      "theme": [
        "lightest",
        "light"
      ]
    }
  ],
  "featureFlags": {
    "enableSWCSupport": true
  },
  "requiredPermissions": {
    "allowCodeGenerationFromStrings": true,
    "localFileSystem": "fullAccess",
    "network": {
      "domains": [ "https://source.unsplash.com" ]
    }
  }
}

Any ideas about this trouble issue? thanks very much.

Of course, another ccx is installed successfully, so I don’t think this is a common problem.

  "host": {
    "app": "PS",
    "minVersion": "23.0.0"
  },

Did you try Validator for UXP - Visual Studio Marketplace ?

If it would still fail without seeing errors here I can add new rules if we can find what is wrong :smiley:

Thank for you help, this plugin works like a charm, helping me fix some problems.
But the package still cant be installed and unzipped…

Array in host is not supported. Are you sure you have object instead of array? UDT changes manifest.json automatically. But you should do it explicitly if you don’t pack with UDT.

Yes :slight_smile: Exactly what I posted :smiley: @rong, did you try it?

Yes, I’ve fixed it, but the same error happens.
now the manifest is like this:

-1 could be anything https://helpx.adobe.com/creative-cloud/kb/troubleshoot-common-addon-installation-issues.html

Manifest error should be -4.

What if you take different plugin that can install and put your manifest in it? And then slowly change it file by file until it breaks?

I’ll try it later, thanks.

Have done few adjustments, try it and let me know if it works.

{
  "id": "cute_guyver_swatches",
  "name": "hello_world_swatches",
  "version": "1.0.0",
  "main": "index.html",
  "host": [
    {
      "app": "PS",
      "minVersion": "23.0.0"
    }
  ],
  "manifestVersion": 5,
  "entrypoints": [
    {
      "type": "panel",
      "id": "cute_helmet_swatches",
      "label": {
        "default": "cute_helmet_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_helmet_line_swatches",
      "label": {
        "default": "cute_helmet_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_hair_swatches",
      "label": {
        "default": "cute_hair_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_swatches",
      "label": {
        "default": "guyver_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_line_swatches",
      "label": {
        "default": "guyver_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_deco_swatches",
      "label": {
        "default": "guyver_deco_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],

Finally, it works after the .gitignore with “node_modules” is added.
Since I found typescript-webpack-sample has the .gitignore.
:joy: :joy: :joy:

Yes, with .gitignore the “node_modules”, it works now.

Plugin should not contain empty file. But -1 meaning unkown error is pretty bad error message. Someone should do revision of all error messages in UPIA.