Wasp

W

Wasp

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

Join

Accessing relation fields on logged in user

Say I have a User model that is defined with relation fields. For example a user can belong to many organizations. Is there a way to populate context.user with the related properties? Or do I need to query User with include every time I want to read the relation? I was looking at the docs for accessing the logged in user and didn't find an answer to this specifically. Wasp version ^0.15.0...

Roll back migration without destroying data

I have added a new model to my schema.prisma and run a single migration. I'd like to roll back my db to the previous migration, but it seems I am unable to do so without resetting the schema and dropping all my data, even though the table is not populated with any data. How can I migrate backward non-destructively? Wasp version ^0.15.0....

Deploy trouble

i'm receiving this error: Error: failed retrieving app my-wasp-app-dry-sun-4376-server: Could not find App "my-wasp-app-dry-sun-4376-server" šŸš€ There was an error running "wasp deploy fly create-db <region>". Please review the error and try again (if appropriate)....

Why that always that i click on screen the 'me' request is being done?

Why that always that i click on screen the 'me' request is being done? Is possible to set a timing to check this?

Authentication check every click

Why that always that i click on screen the 'me' request is being done?

Database Performance with WASP

I'm currently studying about the wasp solution to insert in one solution of my startup I saw that when you do any action like update a model name, for example, it load all the entity data If i have a relationship between two tables and list with any join, changing the entity will make load all the queries?...

SendGrid setup

Thanks for the video @Vinny (@Wasp) Did you have to setup verified domain and verified email in SendGrind for this to work?! I developed the whole thing locally while using dummy provider and now I’m trying to deploy to production but switching to SendGrid gives me a headache. ...

Unable wasp start with setting NODE_ENV=production

I have issue when I set NODE_ENV=production. If I set to development, it works. Can someone explain and tell me how to fix? 60.07 [ Wasp ] client/config.ts(3,47): error TS2339: Property 'env' does not exist on type 'ImportMeta'. 60.07 [ Wasp ] ext-src/admin/layout/Sidebar.tsx(3,18): error TS2307: Cannot find module '../../client/static/logo.png' or its corresponding type declarations....
No description

About Wasp repo and dependency versions

In Wasp repo, where are the dependency versions defined before generating a Wasp template?

[Error] TypeError: Module name, '.prisma/client/index-browser' does not resolve to a valid URL.

I ran into an issue after deploying to fly.io which I believe is related to Enums: [Error] TypeError: Module name, '.prisma/client/index-browser' does not resolve to a valid URL. I used something like import { PostStatus, MediaType } from '@prisma/client'; to have types on the client. ...

How to get credits ammount of a specific user

How to get credits ammount of a specific user with wasp opensaas template ?

new install of Wasp and a template is having DB connection issue

If my newly install of Wasp and a template is having DB connection issues. should I just uninstall and reinstall? it's being hosted locally on an old computer i had laying around. I beleive i have installed docker that is spinning up postgresql. I can run wasp DB start. it appears to be running. I can run wasp start. the template is running, i can access the website. I'm not able to signup a new user. i'm not able to get to the admin page. when i try and sign up a user. it displays a "...

Is open saas / wasp multi-tenancy

Is open saas / wasp multi-tenancy or support multi-tenancy, if not how would i go about implmenting that?

What's the best approach for running a discord bot within a wasp app?

here's an example ``` // Require the necessary discord.js classes const { Client, Events, GatewayIntentBits } = require('discord.js'); const { token } = require('./config.json');...

Is there a way to autofill the username based on the link in the login and signup forms.

I have created a system to invite a user via a link and when the user clicks on signup link he lands on signup page but the username field remains blank. I would want to pick it up from the URL query params and fill into the username field. #frontend #login...

Unexpected error during the build of the frontend in Production

Hello, when i launch: ``` npm install REACT_APP_API_URL=https://api.datanext.app npm run build...
No description

app.emailSender must not be set to Dummy

āŒ --- [Error] Your wasp project failed to compile: ------------------------------- - app.emailSender must not be set to Dummy when building for production. ...

I messed up my db migrations...

Hi all.. I messed up my db migration and now I have no idea how to fix this. This 'migration' stuff is kind of insane, but I'm willing to put up with it because the framework itself is so solid. Anyways, I have my OpenSaaS project being tracked by git. I was trying to implement a new feature, which included a change to the schema.prisma file, which required a db migration. However, I later decided to just roll back to the last git commit. This messed up my migration, the errors weren't specific at all about what I should do so I think I just removed the latest migration directory? It got super messed up, so I just reset the entire db using "wasp db reset". It looked like it was working fine after reset. But now, I'm making more changes to the db schema, and tried migrating it. But it threw an error about the last migration from before I reset....

User last active timestamp

I'm trying to understand how is updated lastActiveTimestamp in user table. Thanks for your help...

Landing Page Header

Hello, I have my new wasp app up and running locally. I see in main.wasp I have a Landing Page at this \ route.
When I visit the landing page component in my src folder, I can't seem to find the header. I'm particularly looking for the login button. I see the login button on the landing page, just can't seem to find the actual component....