Wasp

W

Wasp

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

Join

cannot find module /auth/ui

After upgrading from wasp 0.14.0 to 0.15.0 to 0.16.0 and run "wasp start", I get a blank screen and this error "Cannot find module '/Users/blahblahblah/app/.wasp/out/sdk/wasp/dist/client/auth/ui' imported from /Users/blahblahblah/app/.wasp/out/sdk/wasp/dist/client/auth/index.js". Any suggestions on how to fix this? Thanks....

Custom Aliases don't work after migrating from 0.15 to 0.16

I recently upgraded to Wasp v0.16 because I wanted to take advantage of the custom aliases. I installed shadcn using this guide, and got it working after swapping out the import paths and such as suggested. The problem is every time I add a new shadcn component the paths get written incorrectly and I have to go fix it. So I tried switching back to using aliases and Wasp just fails to compile with errors like Cannot find module '@/lib/utils' or its corresponding type declarations. The aliases are recognized by VSCode without any problems so I'm not sure why wasp is failing on this. Below are my settings main.wasp...

Why prisma instead of drizzle?

The only thing not to love about wasp is the decision to go with prisma instead of drizzle. One of the articles in the blog talks about how other attempts of creating the "Lavarel" of JS failed likely because they got to tightly coupled to the wrong technology (next js, etc). After reading Miho's answer in regards to replacing prisma with drizzle, I'm wondering if the Wasp team didn't, quite ironically, made the same mistake they pointed out on other wannabe JS full-service frameworks....
No description

Page with optional auth - How to get user data in React if the user is signed in?

If I set authRequired: true on a page in main.wasp, then I can get the user data just fine in the React front-end like:
export const MainPage = ({ user }: { user: AuthUser }) => {
export const MainPage = ({ user }: { user: AuthUser }) => {
BUT, if I set authRequired: false in main.wasp, then that user object is undefined. ...

Ejected Dockerfile does not work

i have 16.1 and this is what i get: ``` FROM node:18.18.0-alpine3.17 AS node FROM node AS base RUN apk --no-cache -U upgrade # To ensure any potential security patches are applied....

Setting NODE_ENV to 'test'

I am deploying my wasp app to fly.io for a testing environment. Eventho I set the NODE_ENV Variable in fly.io to 'test', my server thinks he is in production mode. When checking my servers logs i see the following code being executed: npm run db-migrate-prod && NODE_ENV=production npm run start How can i manipulate this? I am using wasp deploy fly deploy for the test deployment...

New error in deployment

[!] Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'

Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'
[!] Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'

Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'
I don't see a src/server.ts in my codebase, any ideas here?...

Does anyone use Drizzle instead of Prisma?

I’m wondering if Wasp supports Drizzle or if someone is already using Drizzle in their Wasp project. I prefer it much more since the queries are a lot closer to SQL...

Puppeteer Scrapping: [ Server ] CAPTCHA detected!

[ Server ] Navigating to Google... [ Server ] Page content preview: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="origin-trial" content="A/kargTFyk8MR5ueravczef/wIlTkbVk1qXQesp39nV+xNECPdLBVeYffxrM8TmZT6RArWGQVCJ0LRivD7glcAUAAACQeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IkRpc2FibGVUaGlyZFBhcnR5U3RvcmFnZVBhcnRpdGlvbmluZzIiLCJleHBpcnkiOjE3NDIzNDIzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content=" ...

Examples of creating session with wasp 0.16.0

I want to create a user session via Wasp's auth hooks, but I can't find any good examples of using the existing auth utils. In old code snippets I see references to createSession but I can't find that anymore. Any suggested reading?

About Wasp TypeScript config

Noob question. In Wasp TS, when you declare an App: `const app = new App('todoApp', { title: 'ToDo App', wasp: { version: '^0.16.0' },...

main.wasp.ts related

OS: Linux Mint Context: Recently made a new Wasp (v0.16.2) project. I set it up first with main.wasp before changing it to main.wasp.ts. Followed the wasp-ts-config instructions carefully. Problem: import { App } from 'wasp-config' has no exported member 'App'. When I used go-to-definition on 'wasp-config', it sends me to run.d.ts file. Is this normal?...

Passwordless login?

Wondering if there's a flow where users can claim accounts when invited, without needing to fully sign up first?

"Property 'value' does not exist on type XYZ"- but it exists. What am I doing wrong?

Hi everyone! In advance I would say that I am new to this technology and I am stuck with something that looks like a bug in WASP but I am not sure. The error I receive when the build fails: Property 'user' does not exist on type '{ id: number; userId: string; } The code:...

ERROR: extension "vector" is not available

Database error: ERROR: extension "vector" is not available DETAIL: Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory. HINT: The extension must first be installed on the system where PostgreSQL is running. ...

Does the Stripe integration support recurring flat rate with per seat pricing?

Thank you for answering so many questions! Apologies for another 😅 Stripe offers flat rate + per seat pricing i.e. $200 per month for 10 users, plus $20 per additional user (more details here: https://docs.stripe.com/products-prices/pricing-models#adding-flat-fees). Would you know if this is supported by OpenSaas?...

Is there a way to track if a user actually clicked the email verification link

Many of my users forget to click the link and it gets tideous asking them all if they did it or not. Is there a way to track in the server console or somewhere else if they actuall clicked it so its easiert to check?...

Migrate found failed migrations in the target database (Error: P3009)

I have a Wasp 0.15 web app deployed on Fly.io. After my latest deployment, the app crashed because some Prisma migrations couldn’t be applied. Now my Fly.io machine is in a stopped state, and I can’t access my app. I get this in the server logs: ...

Creating an on-prem product?

I'm looking to create a webapp that end users can deploy within their environments. this goal would seem to be a bit of an antipattern given the wealth of integrations ootb. Is anyone else working with wasp in this way?

React 19 support?

Im considering upgrading to react 19, curious if there is a paved road in wasp for that or if anyone has experience