Wasp-lang

W

Wasp-lang

Join the community to ask questions about Wasp-lang and get answers from other members.

Join

[SOLVED] Separate queries & actions to multiple files?

Anyone have success on splitting queries.ts and actions.ts into multiple files and import? I have tried and it errors on importing for me. I would love to be able to split these out just for readability šŸ™‚

[SOLVED] Help with auth vs unauth routing...

Hi! šŸ‘‹ Anyone have techniques or ideas on setting up routing within the main.wasp to handle unauth routes vs auth routes if I want all auth to be prefixed with /app and redirect there if logged in? I know there is a rootComponent config but that applies to all. My idea was to have all the logged in app under /app and the landing pages to be /.

[SOLVED] Object relation works when running app but doesn't compile to TypeScript?

My database schema looks as follows: ```entity Task {=psl id Int @id @default(autoincrement()) description String...

open-sass error on wasp start db

I get the following error: āŒ --- [Error] Wasp command failed: ----------------------------------------------- Couldn't find wasp project root - make sure you are running this command from a Wasp project. ...

Modular .wasp files?

Hi, is it possible to have modular .wasp files? Or is main.wasp the only possible option? I imagine main.wasp growing fairly big as my app grows, and being able to split main.wasp into multiple .wasp files (potentially with imports) would have been extremely useful....

WASP and IntelliJ Idea

Does anyone here use JetBrains IntelliJ Idea? I prefer it to VSCode, and has built-in configurations to run and monitor your app during development. I can set it to run "npm" or "node" commands but I'm not sure how to set it to run "wasp start". Does anyone have any ideas?...
No description

wasp tutorials

Hi, would love to get into wasp, with more in depth tutorials for complex SAAS apps. Any pointers? Cheers šŸ™...

Building Wasp app that uses Replicate API, Error submitting images to the API, 404

Hello, I'm building on top of the Wasp SAAS template and I want to make use of models on Replicate.com to run in my app. The issue is that I think I made everything as in /docs, added the replicate and multer dependencies in main.wasp, made a simple front-end to upload two images and a prompt, but when I try to submit and pass it to the actual API I get errors: http://localhost:3000/api/operations/ProcessImage 404 (Not Found)...
No description

Custom Frontend React Template

Hi there, I've recently stumbled across WASP/MAGE and you all have done a great job with this! I have a couple questions that I'm hoping you can help me with: Custom React Styling? ...

Can't build app

Hi there! Really excited about MAGE, but I have no luck in actually building something I can use. The last couple of runs the errors seems to be field relationship, and I'm not sure how to debug (not much experience). I have attached the generated app zip and looking for help. Much appreciated!...

Help with node version

I am having an issue using the correct node version this is the error I get. I have tried just using 18.12.0 both versions say they are installed...
No description

Schedule email with sendgrid

According to the api of sendgrid you can schedule emails via the send_at header: https://docs.sendgrid.com/for-developers/sending-email/building-an-x-smtpapi-header#scheduling-your-send But this sadly does not seem to be possible using the wasp's emailSender api: https://wasp-lang.dev/docs/advanced/email#javascript-api. Is there a nice and clean workaround or is it planned to add more headers to the emailSender api?...

Help with node install

hello, i have want try your bot, and when i make this command : wasp db migrate-dev i have : node command not found!...

trouble setting up wasp-ai

Hey, there. I've built a few node apps before but I'm a little out of my depth with this. I have the MAGE app running, and it's not throwing errors on the console, but I'm not able to authenticate myself in to generate anything. I'm probably missing something really obvious, but I'd like to start with asking if there's any list of variables I need to put into the .env.server and .env.web-app files in my root folder? Is there a problem with the github and google auths? My google auth doesn't show...

How to store client secrets?

Hi, I am creating azure storage file upload feature and I need to keep my tokens as a secret. In the documentation is written that it is not a good idea to keep secrets in env variables. What would be the best practice to keep secrets without using any cloud secrets service?...

Next step?

I am using Mage AI to create an app. I generated the code and I am wondering what my next step is. How do I see the app like an app from the app store? I also dont know what to tag this as, so sorry if i get it wrong.

could not create directory

Installing wasp version 0.11.8 (latest). /Users/daniel/.local/share/wasp-lang/0.11.8 does not exist, creating it... Could not create directory: /Users/daniel/.local/share/wasp-lang/0.11.8. ...

Using GPT 4 Turbo

Hey Guys, I've been trying to generate a app using the GPT 4 Turbo modell but I can't get it to work. Are the new models supported yet? Generating a app using 3.5 works just fine....

edit app

Hi all, Is it possible to edit an app once its been created....