Wasp

W

Wasp

Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.

Join

Progressive Web App

At some point I saw the 'Install' toast message to install the web app to my phone. I no longer see it. How can I enable or trigger it so it shows?

Production deployment Issues with large schemas (30+ models)

Hi Wasp team! 👋 I'm building a production SaaS on OpenSaaS and hit a critical blocker. My schema has grown to 32 models (733 lines) and wasp build consistently fails with SDK Prisma client generation errors. The issue: SDK generates stub types (20KB) instead of proper Prisma client (2.2MB), causing 88+ TypeScript errors....

Is there a way to customize error messages: Save failed: user with the same identity already exists?

I'd like to add something helpful to tell them "perhaps you used a different login method" or something to that effect.

Error running wasp db migrate-dev on new project

I created a new wasp project with the OpenSaas template and ran the wasp db migrate-dev. However, I was greeted with the following error: 🐝 --- Building SDK... ------------------------------------------------------------ [ Wasp ] core/serialization/custom-register.ts(17,16): error TS2665: Invalid module name in augmentation. Module 'superjson' resolves to an untyped module at '/Users/hydrogen/Desktop/OneDealer/rag-saas/app/node_modules/superjson/dist/index.js', which cannot be augmented....

Approach for long running backend operations

Hello all, I wanted to get a feel for the best approach here when it comes to server operations that take a long time to complete - say hours/days. What's the best approach here? I've been thinking of starting a python service that takes care of these ops. Frontend sends request to the service, service does its think via celery, service finishes and updates Wasp's DB via an api request. This means each operation that takes time needs an entity in the DB so we can set its status. This way the web-app is always up to date with operation status, doesn't hang up, and the operation doesn't get interrupted on page refresh or browser exit....

Running wasp start db locally errors

``` wasp start db ✨ Starting a PostgreSQL dev database (based on your Wasp config) ✨ Additional info: ℹ Connection URL, in case you might want to connect with external tools:...

what is this problem i am not able to connect to db . is ts docker or my local setup??

Additional info: ℹ Connection URL, in case you might want to connect with external tools: postgresql://postgresWaspDevUser:postgresWaspDevPass@localhost:5432/OpenSaaS-fb8e32b369 ℹ Database data is persisted in a docker volume with the following name (useful to know if you will want to delete it at some point): wasp-dev-db-OpenSaaS-fb8e32b369...

Migrating database without resetting data

wasp db migrate-dev works when updating the schema but it deleted all data. How can I preserve data while making changes to tables?

wasp build start

Feels really stupid to ask this but i can't manage to get wasp build startrunning. I always get the message, that the DATABASE_URL is not defined (from the prisma file). But i run DATABASE_URL=<url> wasp build and even if i run DATABASE_URL=<url> wasp build start afterwards i get the exact same error. What am I missing?...

How to deploy to an existing Railway Project?

What do I need to do to deploy to an existing railway project? I am able to launch a new project without issue. However, I want to launch into an existing project, where I can take advantage of internal API calls between apps/databases....

Deploy through github

Hey all, Right now I have some other apps hosted on Railway. With those apps, my workflow is to pull main/develop, create a branch, make changes then commit/push to github. In github, I make a merge request and apply to main/develop....

Adding a new Email provider

"Wasp's email providers are built into the framework itself, so we can't add new providers directly" I want to create a new email provider that's not part of the wasp framework (SendGrid, Mailgun). How can I go about doing that?...

Deploying WASP without DB

Hello, I have been using for developing a static website, and for now I don't need a backend for my project. However, the Wasp keeps asking me to setup a postgres db before doing the wasp build. Why is that? Can I deploy without the postgres db?...

Install deps on docker

I'm trying to use just the npm package https://www.npmjs.com/package/pdf2pic But it gives error because of the prerequisites (graphicsmagick, ghostscript) They have a guide to do it: https://github.com/yakovmeister/pdf2image/blob/HEAD/docs/gm-installation.md:...

How can I deploy a staging and a production environment in railway?

I'm have one project and 2 environments in railway - staging and production. I've always just been deploying to production, but im finally adding a staging one lol. Can i use the wasp railway deploy command for both environments? or do i have to make full seperate projects?...

Questions

1. For Wasp v0.15, what's the recommended way to deploy to production with Docker? Should we bundle the server code or run it directly from source? 2. In the Dockerfile, should we COPY . /app (entire project) or just COPY .wasp/build and .wasp/out/sdk? What's the minimal set of files needed? 3. When should npm run bundle happen - during wasp build, during Docker build, or at server startup?...

React crash (ReactCurrentDispatcher/ReactCurrentBatchConfig undefined) on Wasp 0.18

Hi everyone 👋, I’m running into a blocking issue after deploying my Wasp 0.18 project to AWS (EC2 with Docker). In production, when loading the app in the browser I get:...

wasp db start Issues

This is the response when I try to run wasp db start on my Mac Status: Downloaded newer image for postgres:latest Error: in 18+, these Docker images are configured to store database data in a format which is compatible with "pg_ctlcluster" (specifically, using...

client env vars

Hey kapa, will this be correct: clientId: import.meta.env.REACT_APP_GOOGLE_CLIENT_ID || '', appId: import.meta.env.REACT_APP_GOOGLE_APP_ID || '', developerKey: import.meta.env.REACT_APP_GOOGLE_PICKER_API_KEY || '',...

Heads-up: react-konva build break after @types/react 18.3 auto-upgrade

Railway installs grabbed @types/react 18.3 (we declare "^18.0.37"), which dropped implicit children from React.FC/ForwardRefRenderFunction. That breaks react-konva (Stage/Layer/Group no longer accept children) and any Konva configs relying on className/padding/cropX/Y. Dev boxes kept older node_modules so it only surfaced in deploy. Not sure if this will break anything else, just wanted to notify....