Your wasp project has successfully compiled is the last message
So when i use database_url set to my supabase url, and then do wasp start - it does not send me into a new tab or initate localhost:3000?
its like it gets stuck but there is no error all it says is just - Your wasp project has successfully compiled.
4 Replies
Hi @ArDev. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
When you run
wasp start
, it should start the development server and open a new tab in your browser at <http://localhost:3000
> with a simple placeholder page. This is the expected behavior as per the Wasp documentation (https://wasp-lang.dev/docs/tutorial/create).
However, if it's not opening a new tab or initiating localhost:3000
, there could be a few reasons for this:
1. There might be a service already running on port 3000. You can check what service is using port 3000 and terminate it. Then, start the app again and it should work (source (https://discord.com/channels/686873244791210014/1213958217537814640)).
2. There could be an issue with your server.ts
file. If you're getting an error like "Cannot find module 'wasp/server' or its corresponding type declarations.", it might be related to running it from a certain environment and not from another (source (https://discord.com/channels/686873244791210014/1213958217537814640)).
3. If you're using Vite and it's configured to open a new tab on startup, you might need to change the Vite config so it doesn't do that (source (https://discord.com/channels/686873244791210014/1217483832404611195)).
If none of these solutions work, you might want to try running wasp clean
and then wasp start
again. If you're still encountering issues, please share the error you're getting from either the terminal or the console within the browser's developer tools (source (https://discord.com/channels/686873244791210014/1213958217537814640)).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ArDev, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?@kapa.ai its when i set database_url to something it just does not go past - ✅ --- Your wasp project has successfully compiled. -----
Let me check the knowledge base for you again. One moment! :books:
----------------------
Setting the
DATABASE_URL
to a specific value should not prevent your Wasp project from compiling successfully. However, if you're experiencing issues, it could be due to a few reasons:
1. The DATABASE_URL
might not be correctly set. Ensure that it is correctly set in your .env
file. The format should be DATABASE_URL="<your_database_url>"
.
2. There could be an issue with the database connection. If you're using an external database like Supabase, ensure that the connection string is correct and the database is accessible (source (https://github.com/wasp-lang/wasp/issues/1265)).
3. There might be a problem with the database migration. If you're seeing an error like "Migrate dev failed", it could be due to incorrect migration arguments (source (https://github.com/wasp-lang/wasp/issues/1579)).
4. If you're seeing an error like "Environment variable not found: DATABASE_URL", it could be due to the Prisma setup. Prisma expects the DATABASE_URL
to be set in the .env
file in the root directory of your project (source (https://github.com/wasp-lang/wasp/issues/1282)).
If none of these solutions work, you might want to try running wasp clean
and then wasp start
again. If you're still encountering issues, please share the error you're getting from the terminal.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ArDev, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?oh hey guys so this discord actually explains it - https://discord.com/channels/686873244791210014/1250831665995972729