Wasp

W

Wasp

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

Join

Error with Mage

I just discovered wasp and Mage I just created a dummy example to try it because I find it very usefull. I installed all dependencidies and when I run wasp start the localhost:3000 is a blank pare. This is my Home.jsx: import React from 'react'; import { useQuery } from 'wasp/client/operations'; import { getRestaurants } from 'wasp/client/operations'; import { Link } from 'wasp/client/router';...

Customise openSaaS template

Hello, I am planning to use openSaaS for my new saas. I am trying to understand how much I can customise the template? Can I just import my NodeJs components in it and just show them in a page? Or do I have to reimplement them in Wasp?

TypeScript issues:

wasp version 0.16.2 on Ubuntu having type safety issues that are crashing my wasp, i can't get started on developing I replaced the demo-app with something nearly identical, yet it throws cannot find type on this:...

How lang will wasp stay in beta?

First of all thank you for building wasp! I have been working with it now since end of June and while it was confusing at he beginning that some things just happen automatically under the hood and can’t be changed such as Language on log in pages , I now love it and am building my startup around it.
I just am a little concerned because it’s still in beta. Do you know when it will be moving to the next stage? ...

ERR_MODULE_NOT_FOUND

Hello, I am using wasp 0.15.0, on linux mint I recently got a problem with my wasp app, I am using the OpenSaas template, wich I've been using for a while now the error code is the following ``` [ Server ] ...

Localization i18n

Is there a recommendation on how to apply localization / i18n ? I would need this also for auth and validations, i am wondering if anyone has a similiar scenario and maybe has some example code to share....

unable to install '@strapi/client' due to tsconfig builder

unable to install '@strapi/client' due to tsconfig compile settings:
[ Wasp ] src/demo-ai-app/DemoAppPage.tsx(18,24): error TS2307: Cannot find module '@strapi/client' or its corresponding type declarations.
[ Wasp ] There are types at '/.../Documents/commercialNewsApp/commerseNews/app/node_modules/@strapi/client/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
[ Wasp ] src/demo-ai-app/DemoAppPage.tsx(18,24): error TS2307: Cannot find module '@strapi/client' or its corresponding type declarations.
[ Wasp ] There are types at '/.../Documents/commercialNewsApp/commerseNews/app/node_modules/@strapi/client/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
...

Unable to sign in and retry (new user)

Tried to "Generate the app" from the GPT Web App Generator interface and was asked to sign in to GitHub, after signing in there was an error "An unknown error occurred while trying to log in with the OAuth provider." And I couldn't retry the process even after 2 hours as it kept redirecting me to the same error page. I am unsure if there was an error with my login, or is it an issue with the OAuth provider, please help 🙏 ....
No description

overwrite entire dockerfile

Pretty much the challenge I'm having is being able to replace the NODE_ENV during build time. I see that production is hardcoded into the default wasp dockerfile. Appending a new dockerfile at the end does not help me much I don't think....

Redirect to user to same page after login

I would like to redirect users to same page they are on, after logging in. How is this possible?

Web socket for streaming

Create an example of web socket for streaming

No Google Email in Database of User

Hi! I am using the Open Saas Template and implemented Google Authentication for Sign Up and Login, I realised looking into Primsa Database, the table User, it successfully register the user but the email field is null. I ensured I have already requested those /auth/userinfo.email is enabled in Google's side. Was wondering if this is normal behaviour or what do I need to do to get the email showing up inside the database? Thanks!

Question about Open Ai credit management

is there a documentation to learn how to work with open ai credit management in opensaas

Fresh install - Error: There is no datasource in the schema

Hi, i just came back to try Wasp with v16 again. The Problem: wasp db migrate-dev gives my the Error in the section Setting up database... : Error: There is no datasource in the schema. You don't have any datasource defined in your schema.prisma....

Save failed: user with the same identity already exists -- Making a user manually

I'm not sure how Wasp makes a user how does that work? I need to make a user in the background. If I write ``` if (!user) { // Create a new user if they don't exist...

How do I access my prima studio for my app after it's deployed on fly.io?

I've deployed my app to fly.io, now how do I access prisma studio for my deployed application?

Google sessionId not persisting

I'm using a deferent client frontend, and I'm noticing that after signing in with google, the user is able to login in fine but immediately gets logged back out (since there's no sessionId stored) not sure what additional information I can provide to help back this question....
No description

How to properly type Prisma query results with included relations in Wasp?

Hi everyone, I'm trying out Wasp, and I have a small problem I would like share here. `model Product { id String @id @default(uuid()) name String...

Deployed OpenSaaS app not sending emails

Hey there, I have deployed an OpenSaaS app via fly.io, and everything seems to be OK except for email signup. When I try the email sign-up, I see this in the server logs, but never get an email: 2025-02-27T13:52:38Z app[1781252b571058] mia [info]POST /auth/email/signup 200 68.872 ms - 16 ...

[Help] Getting CORS error on preflight request

I tried everything to fix this CORS error but if i try to access my backend server from different origin i get this cors error do you guys know why? I tried different things to enable cors for all domains but didn't work Like adding globalMiddleware or api level middle ware....
No description