Comments (5)
I think I found the fix. In the base tsconfig.json
, replace line 27 with this "exclude": ["node_modules", "supabase/functions"]
. This will ignore that folder during build.
Source of where I got help from: vercel/next.js#11113 (reply in thread). Read, "What is included in the build seems to depend a lot on tsconfig.json when you use TypeScript. So excluding failing files seems to work for me."
But supabase/functions/_lib/database.ts
is imported into app\chat\page.tsx
on line 7. You will have to copy the former into the lib
folder and then import it from there.
from chatgpt-your-files.
You might ask why not run npm run dev
? Because when I run it and try to sign up, it gives me the error "Error: Hydration failed because the initial UI does not match what was rendered on the server." That was with the starter idk why it happened.
from chatgpt-your-files.
The tsconfig.json
workaround is not ideal since typescript errors don't show up. Just made a silly error that only got caught after deploying the edge function and running it.
from chatgpt-your-files.
Thanks for reporting @kleenkanteen! I created a PR to address the build specific issues: #9
Let's address the npm run dev
issue in #8
from chatgpt-your-files.
Fixed via #9. Feel free to reopen/comment if you experience any more build related issues!
from chatgpt-your-files.
Related Issues (16)
- Client connection error and wall clock duration reached - Local HOT 2
- Cannot deploy SupabaseFunction anymore HOT 2
- Unrecognized configuration parameter "request.headers" HOT 6
- any file extension chat HOT 1
- Docs feedback from tutorial user HOT 7
- shutdown (reason: CPU time limit reached) HOT 24
- npx supabase functions deploy HOT 2
- Supabase Installation Issues in WSL2 HOT 2
- Error when trying to embed a md file HOT 1
- if embedding or chunking or any of the worker fails in the background, need a simple way to communicate that to user. HOT 1
- Use multilingual embeddings model
- Tutorial branches are missing Edge Functions updates?
- A few issues when running locally HOT 6
- Cannot upload file
- npm run dev does not work HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-your-files.