Wasp

W

Wasp

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

Join

Log in problem in Mage

I cant see website becuse i cant log in to my ready local host. i can not see how localhost is working. Database problem and sometimes eror 500.

🚀 Unexpected non-whitespace character after JSON at position 2654

Trying to deploy using wasp deploy fly deploy which has worked just fine for me several times already this morning. Now getting this very vague error right after the secrets list is displayed in console. Anyone seen this? Is there just something weird going on with Fly?

Call operations from api

Is it possible to call operations from an api? I have a function in operations.ts for creating trips (createTrip(..)), and it'd be nice to be able to call it directly from the API, rather than calling the Prisma function contexts.entities.Trip.create()... Is this possible?...

EmailSignupData type mismatch with 0.17 docs

Hey guys I saw in the documentation here that the signup action has the email and password fields. But if you look at the EmailSignupData in my code in the screenshot it has the username and password any idea why?
No description

Firebase

Can you guys possibly create a tamplatebfor firebase app hosting and other firebase services like big query and auth and cloud functions etc

db error

im getting this error when running wasp db migrate-dev. Error: P3014 Prisma Migrate could not create the shadow database. Please make sure the database user has permission to create databases. Read more about the shadow database (and workarounds) at https://pris.ly/d/migrate-shadow ...

api

can you still use context.entities in wasp apis even if there’s no logged-in user

Google Oauth custom domain goes to fly.io instead of custom domain

I'm hosting my Saas on Fly.io and I've setup a custom domain (say, abcdef.com). I use Google OAuth, and when I log in, it directs to the fly.io domain (abcdef-client.fly.dev)instead of the custom domain (abcdef.com). When I setup the client variables WASP_WEB_CLIENT_URL and WASP_SERVER_URL to abcdef.com, when I log into google I get a 404 (page not found) error. When I set them to their fly.io URLs, it works fine, but the URL shows abcdef-client.fly.dev. How do I remedy it so that it always goes to the custom domain??...

My Traffic is Increasing - What's The Best Way To Scale on Fly

My wasp app has started to grow significantly in terms of traffic and background proccess. What's the best way for me to scale? And what should I prioritise scaling - db, server or client? I am deploying on fly.io

tailwind error

im getting this error [ Server ] [nodemon] app crashed - waiting for file changes before starting... [ Client!] 11:12:27 PM [vite] (client) Pre-transform error: [postcss] It looks like you're trying to use tailwindcss directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install @tailwindcss/postcss and update your PostCSS configuration. [ Client!] Plugin: vite:css [ Client!] File: /home/guinness/PetAll/src/index.css:undefined:NaN...

api error

im getting an error here with the api [ Server!] [!] RollupError: Could not resolve "../../../../../../src/payment/orders" from "src/routes/apis/index.ts" [ Server!] src/routes/apis/index.ts [ Server!] at getRollupError (/home/guinness/PetAll/.wasp/out/server/node_modules/rollup/dist/shared/parseAst.js:285:41) [ Server!] at Object.error (/home/guinness/PetAll/.wasp/out/server/node_modules/rollup/dist/shared/parseAst.js:281:42) [ Server!] at ModuleLoader.handleInvalidResolvedId (/home/guinness/PetAll/.wasp/out/server/node_modules/rollup/dist/shared/rollup.js:22762:36)...

PrismaClientKnownRequestError: The table `public.User` does not exist in the current database.

Hi, Wasp team. I deployed my project to Fly.io though the CLI commands, and added secrets required for the app to run. I try to signup a user within the app and end up getting the following error: ``` PrismaClientKnownRequestError:...

Facing an issue with wasp build when NODE_ENV is set to production

When i set NODE_ENV to production wasp build fails with Typescript errors for ImportMeta and env object. There are also module resolution failures for static files like svgs and pngs
No description

db error

im getting this error when running wasp db migrate-dev ❌ --- [Error] Can not connect to database: --------------------------------------- The database needs to be running in order to execute this command. You can easily start a managed dev database with wasp start db. theres another terminal window where the db is ready to accept connections but wasp db migrate-dev or wasp start doesnt work. Whats causing this?...

Limit allowed user in social logins based on some attributes

I would like to limit who can log in to my webapp via social logins. For example, I use github and google logins, I would like to allow members of only one github org and one google org to login. Others should not be allowed. Can you show me how?

wasp emailSender failing with connection timeout but local non-wasp email sending works fine?

Using SMTP connection, it worked fine two days ago and I haven't changed any env variables. Have a local Python to connect to the SMTP and send a test emal and that still works fine. Checked Mailersend and no status changes on their end.

Unable to run the wasp locally

This is the doc I have been following to setup the server locally. https://github.com/wasp-lang/wasp/tree/main/waspc#quick-overview I have been able to fix the issues faced untill now, but when I am trying to run the example app I am facing errors. I have attached the image for reference. Thank you....
No description

I've had the env vars validation fail

I've had this failure happen to me twice now with seemingly unrelated code. I looked in my server files and don't see any imports from wasp/client (from here: https://discord.com/channels/686873244791210014/1402311673993367632) ``` [ Server!] %s [ Server!] ══ Env vars validation failed ══...

Argon2 deployment issue on macOS ARM → Alpine Linux

Hi! I'm facing a deployment issue after developing on macOS ARM (Apple Silicon, M1). My app crashes on startup with: Error: Cannot find module './argon2.linux-x64-musl.node...