Identifying development errors and Starter bugs
While developing with FastStore, you may run into errors. Some of these may require fixes in FastStore libraries, while others may require adjusting your code.
Hence, before proceeding with any advanced troubleshooting, we recommend that you first check if you are facing a bug from FastStore/WebOps or a mistake on your side.
Step by step​
- Open the terminal and clone the Base Store repository.
- Next.js
- Gatsby
npx degit vtex-sites/nextjs.store
npx degit vtex-sites/gatsby.store
- Change to the cloned repository and run
yarn
.
- Next.js
- Gatsby
cd nextjs.store && yarn
cd gatsby.store && yarn
Open the
store.config.js
file and update the value of thestoreId
field with the account name of your store.module.exports = {
platform: 'vtex',
api: {
+ storeId: {account}
environment: 'vtexcommercestable'
}
}Start a local server.
yarn develop
Access http://localhost:8000/ and test the features you are having trouble with.
If the problem persists with the Base Store starter, we recommend opening an issue and reporting the problem. However, if the error only occurs in your own project, please refer to the Tracing the error source guide to continue debugging your store.