Troubleshooting
Enabling Debug Logs
In the Storefront Application there are multiple ways to enable a more verbose logging both for Nuxt and Storefront Core.
To enable debug logs for Storefront Core you can set the following key in your .env
file:
To enable Nuxt debugging logs, you can run the application with the following environment variable:
Both these options will give you more insight into what is happening under the hood in the application.
Redis is not available
This error means that Redis is not available. Storefront requires Redis in order to run properly.
To fix this error, either start a locally installed Redis server, or start one through the provided Docker Compose setup:
Composable with multiple async operations loses context
Should a composable contain multiple async
operations, it might lose its Nuxt context
for all but the first called async
operation.
This behavior can result in code not working as expected. For example:
The following code used runWithContext
to mitigate the loss of the Nuxt context
for all subsequent async
operation besides the first one:
Details regarding this Nuxt behavior can be found here: