Skip to content

Commit 910fd79

Browse files
committed
update scripts
1 parent be8d228 commit 910fd79

File tree

4 files changed

+53
-16
lines changed

4 files changed

+53
-16
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Troubleshooting
3+
description: Troubleshooting common issues
4+
---
5+
6+
# Common Issues
7+
8+
### Codesandbox Preview
9+
10+
Codesandbox may ask you to confirm to proceed. You can click the button by switching to Preview mode in onlook, and click the "Yes, proceed to preview" link and switch back. The UI should render properly inside the iframe after that.
11+
12+
![Codesandbox confirmation mode](/images/csb-proceed-to-preview.png)
13+
14+
![Switch to Preview mode](/images/visual-switch-to-preview.png)
15+
16+
### Authentication Issues
17+
18+
If you encounter issues with reloading pages and being unauthenticated then check your node version, install a more recent version, re-install dependencies and restart the project.
19+
Minimum version `v20.16.0` or latest is recommended.
20+
21+
Avoid version `v20.11.0` of Node as it has shown this issue in the past.
22+
23+
```bash
24+
node --version
25+
```
26+
27+
You may have to delete cookies to clear the authentication state.
28+
29+
![Delete cookies](/images/delete-cookies.png)
30+
31+
### "Column not found" error
32+
33+
If you encounter issues such as "Column not found" error, your database may be out of sync with the schema. There are 2 things to try to get it back in sync:
34+
35+
1. Run `bun db:push` to push the schema to the database. If there are conflicts, you can try step 2.
36+
2. Run `bun db:reset` to fully reset the database and re-run the migrations. WARNING: This will delete all data in the database.

docs/public/images/delete-cookies.png

207 KB
Loading

docs/public/sitemap-0.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3-
<url><loc>https://docs.onlook.dev/robots.txt</loc><lastmod>2025-08-13T18:05:47.972Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
4-
<url><loc>https://docs.onlook.dev</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
5-
<url><loc>https://docs.onlook.dev/developers</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
6-
<url><loc>https://docs.onlook.dev/developers/appendix</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
7-
<url><loc>https://docs.onlook.dev/developers/architecture</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
8-
<url><loc>https://docs.onlook.dev/developers/running-locally</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
9-
<url><loc>https://docs.onlook.dev/faq</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
10-
<url><loc>https://docs.onlook.dev/getting-started/core-features</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
11-
<url><loc>https://docs.onlook.dev/getting-started/first-project</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
12-
<url><loc>https://docs.onlook.dev/getting-started/ui-overview</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
13-
<url><loc>https://docs.onlook.dev/migrations/electron-to-web-migration</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
14-
<url><loc>https://docs.onlook.dev/tutorials/figma-to-onlook</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
15-
<url><loc>https://docs.onlook.dev/tutorials/importing-templates</loc><lastmod>2025-08-13T18:05:47.973Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
3+
<url><loc>https://docs.onlook.dev/robots.txt</loc><lastmod>2025-08-13T18:21:43.820Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
4+
<url><loc>https://docs.onlook.dev</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
5+
<url><loc>https://docs.onlook.dev/developers</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
6+
<url><loc>https://docs.onlook.dev/developers/appendix</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
7+
<url><loc>https://docs.onlook.dev/developers/architecture</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
8+
<url><loc>https://docs.onlook.dev/developers/running-locally</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
9+
<url><loc>https://docs.onlook.dev/faq</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
10+
<url><loc>https://docs.onlook.dev/getting-started/core-features</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
11+
<url><loc>https://docs.onlook.dev/getting-started/first-project</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
12+
<url><loc>https://docs.onlook.dev/getting-started/ui-overview</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
13+
<url><loc>https://docs.onlook.dev/migrations/electron-to-web-migration</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
14+
<url><loc>https://docs.onlook.dev/tutorials/figma-to-onlook</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
15+
<url><loc>https://docs.onlook.dev/tutorials/importing-templates</loc><lastmod>2025-08-13T18:21:43.823Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
1616
</urlset>

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
"docs": "bun --filter @onlook/docs dev",
2525
"backend:start": "bun --filter @onlook/backend start",
2626
"db:gen": "bun --filter @onlook/db db:gen",
27-
"db:push": "bun --filter @onlook/db db:push",
28-
"db:seed": "bun --filter @onlook/db db:seed",
29-
"db:migrate": "bun --filter @onlook/db db:migrate",
27+
"db:push": "cd packages/db && bun db:push",
28+
"db:seed": "cd packages/db && bun db:seed",
29+
"db:migrate": "cd packages/db && bun db:migrate",
30+
"db:reset": "cd apps/backend && bun run reset",
3031
"format": "bun --filter '*' format",
3132
"lint": "bun --filter @onlook/web-client lint",
3233
"typecheck": "bun --elide-lines 0 --filter '*' typecheck",

0 commit comments

Comments
 (0)