Errors with the service configuration app occur depending on your workspace configuration
If you are developing a configuration app, you may be getting errors because the service your app is configuring is installed or linked to a different workspace. This happens because, when creating a new configuration app, the configuration builder first looks for that configuration schema in all the apps installed in your current workspace. Consequently, linking your app may fail if the configuration builder cannot find this specific configuration.
Solution
Below, we outline solutions for addressing errors with your service configuration app:
- Avoid errors when installing or linking your configuration app.
- Publish your configuration app in an alternative workspace.
Avoiding errors when installing or linking your configuration app
To avoid errors, link or install the configuration app in the same workspace the service app is linked or installed. Follow the instructions below:
-
In a terminal, go to the desired workspace using the following VTEX IO CLI command:
_10vtex use workspace {desiredWorkspace}Replace {desiredWorkspace} with the workspace you want to work in.
-
If your service app is not yet linked or installed, link or install your service app.
Publishing your configuration app in an alternative workspace
To publish your configuration app without installing the service in the master workspace, follow the instructions below:
-
In a terminal, go to the desired workspace using the following VTEX IO CLI command:
_10vtex use workspace {desiredWorkspace}Replace
{desiredWorkspace}
with the workspace you want to work in. -
If your service app is not yet linked or installed, link or install your service app.
-
Create a new version of your configuration app by following the instructions in Releasing a new app version.
-
Publish your configuration app using the following command:
_10vtex publish -w {desiredWorkspace}The
-w
flag allows you to choose the workspace of the app you are publishing.