Wasp-lang

W

Wasp-lang

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

Join

Error launching a new wasp project

HI! I'm starting to explore Wasp, but I've already come across a problem: simply trying to create a new project and run it with wasp start, I get these errors: anyone have any ideas? ``` 🐝 --- Starting compilation and setup phase. Hold tight... ------------------------ ...

todo list: server crashes

Tried replicating the todo list project and at first it ran and then it is crashing, is it some npm error because it is quite frequently happening. Please help me understand the error!:wasplang:...
No description

When i try to install opensaas and when i try to wasp db migrate-dev i get this

[ Wasp ] ext-src/admin/elements/charts/BarChart.tsx(95,9): error TS2353: Object literal may only specify known properties, and 'radius' does not exist in type '{ strokeColor?: string; strokeWidth?: number; fillColors?: string[]; shape?: ApexMarkerShape; offsetX?: number; offsetY?: number; customHTML?(): any; onClick?(): void; }'.❌ --- [Error] Your wasp project failed to compile: -------------------------------- SDK build failed with exit code: 2❌ --- [Error] Compilation of wasp project failed:...

What are the password requirements for users?

I have noticed that non safe passwords can't be used. What are the specific requirements for the passwords?

Module '"wasp/server/operations"' has no exported member 'scrapeArticles'.

Hey, I'm been having some trouble trying to resolve this bug related to a custom action that I'm trying to implement. I'm using the open Saas framework. Here's the line that giving me touble:...

Deployment Questions

Hi! I'm getting very close to deploying, and I have a few questions before I do. As a bit of context, I'm an experienced web developer but I've never launched my own application. 1. Updates: Is there a recommended way to push updates to the live version of the wasp application? Currently I'm hosting everything on github, and would like to use my main branch as the deployed version of the app. What's best practice here? 2. Prisma DB Studio access for deployed app. How would I go about accessing this to manage the data for my app? 3. Substituting NGROK. Currently, I'm using Ngrok to test my endpoints from a mobile version of my app, but I'll need to swap that out for whatever will replace my port 3000 and 3001. I'm not sure what to expect when I cross that road....

Migration to 14, should update auth field?

I am using OpenSaas. Right now I am working on migration to v0.14. I followed the guide on the docs, but now userEntity: User causes a type error on main.wasp (undefined identifier, because the entity is no longer on .wasp file I think). Besides Wasp v.0.14, I see changes to the OpenSaas code, such as @src/auth/email-and-pass folder and its code (which requires changes to the main.wasp), there are probably more changes. To get the most up-to-date code for my project, do I need to do anything oth...

Undefined email parameters

I created actions and everything but somehow this code send an email with undefined values(in below example inputSubject is undefined). import { emailSender } from 'wasp/server/email'; export const sendGUIMailRequest = async (inputName, inputEmail, inputSubject, inputPhone, inputEmailBody) => {...

migrate-dev failure when adding property to entity

Trying to perform a migration where I add an optional field to User, but since there already exist users in the DB the migration fails. For example: Migrating from: ``` entity User {=psl...

Reuse auth from wasp/opensaas in other apps

I plan to create an extension to complement my app. Has anyone done something similar or had a way to use the session/authentication of opensaas/wasp app auth

Sendgrid Error

const info = await emailSender.send({ from: { name: name, email: "[email protected]", },...

Switching wasp version, and/or running in Docker

Is there a way to switch wasp version, just like nvm for example? I can't seem to find anything from the docs -> https://wasp-lang.dev/docs/general/cli#miscellaneous-commands Have anyone tried running everything inside a docker container? based from my understanding only the database is ran in docker...

Trying to run wasp over https locally, permission denied

I'm trying to run wasp over https locally to test oauth that requires https. I tried using the plugin-basic-ssl that comes with vite like so and it actually worked for a bit, but I had to run sudo wasp start to get it to work. When i tried running it again I got issues with not being able to find some of my modules and it seems something odd is happening when building wasp with sudo. If i run without sudo I just get this error: ``` [ Client!] error when starting dev server: [ Client!] Error: listen EACCES: permission denied 127.0.0.1:443...

Documentation for `login` action

Is the documentation for the login action perhaps incorrect? The API reference at /auth/username-and-pass#1-using-the-signup-and-login-actions shows that the function takes username: string and password: string, but the member exported from wasp/client/auth shows that it takes data: { email: string; password: string } Wasp version: 0.13.2...
No description

change what port wasp is listening on

hey all looking for some help - i am on linux system if relevant (inb4 i use linux) really simple i think - starting up my wasp app for first time, i cant
wasp db migrate-dev
wasp db migrate-dev
because ...

Undefined identifier: User

I am updating v0.13.2 to v0.14.0 and got the following error after following the migration guide: ``` 1 errors found: - /Users/rbatista19/Documents/VSCode/MeetingReminders/meeting-reminders/app/main.wasp @ 32:17-20 Type error:...

Help: path:"/" to: "pubilc/index.html"

How to route the path:"/" to the index.html file

streamingProcess: exec: invalid argument (Bad file descriptor) error

I am getting a wasp-bin: /home/~path/app/node_modules/.bin/prisma: streamingProcess: exec: invalid argument (Bad file descriptor) error when I run wasp db migrate-dev before starting the app even first time. node version - v22.5.0 npm version - 10.8.2 wasp version - 0.14.0...

Is there a way automatically navigate to another page

Hi, i want to add a logic in login and register page if user already loginned then login page must navigate to main page const { data: user } = useAuth(); i can get users data to check if user loginned or not but i can't find any thing in documentation for auto navigation like useNavigate...

Can I stop server or db machines?

I ran default configuration for fly.io setup. My website is working with out any problem. However even with lowered memory settings, (256 MB mimunum for each app) fly.io cost a lot of money. It won't be free with 3 different default machines as below: I know that wasp creates client db, and server, but it cost more than 5 dollar which is the minumum money fly.io free version. Can I close server or db with out any problem? Or what is the suggested method in here?...
No description