Wasp-lang

W

Wasp-lang

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

Join

Turning off ASCII color logging in PROD

I have deployed my opensaas template on AWS App Runner and viewing the logs in CloudWatch is really ugly because ASCII Color logging is not supported. Can I turn off colored logging on PROD?

Getting error on Google Auth deployed version (using MacOS) and wasp version 0.13.2

Getting "An unknown error occurred while trying to log in with the OAuth provider." Google was working fine on localhost, but once deployed it is no longer working.

stripe issues

Hi I'm following the instructions and trying to get the customer portal link activated. "Note that there are variables set aside for your test portal link, as well as a production portal link. You will be warned in the console if you there is no link in the development environment, but the app will throw an error if there is no link in the production environment!" Please help me understand exactly what I need to have in the constant.ts file to launch...

OpenSaas template updates pull into project

Hi there! My question would be if there are any updates on the OpenSaas templates, how can we pull this into our project where we have our own repository?

How does one go about creating their own server-side API endpoint to interact with in the frontend?

wasp version 0.13.2 Platform: MacOS Hey! Quick question, is there documentation lying around somewhere regarding a guide to creating your own API endpoint in order to interact with it in the frontend without messing with authorizations and backend logic? ...

Prisma client generation failed

Hello ! I have problem when i make wasp start or wasp db migrate , i have "prisma client generation failed with exit code:1" can you helpe me ? please

WASP AI feature - still using old OpenAI models?

I am trying to use the WASP AI feature to generate an app with the OpenSaaS template. It appears the WASP AI still uses the old models gpt-4-0613. How can I update this with the latest one: gpt-4-turbo?

RollupError

I try to deploy but I have this error: ``` #0 7.556 [!] RollupError: Could not resolve "../../../../../src/libs/stripe/server/queries/setupIntentSecret" from "src/queries/setupIntentSecret.ts" #0 7.556 src/queries/setupIntentSecret.ts...

CSS bugs after installing shadcn

I followed this for shadcn: https://gist.github.com/infomiho/b35e9366e16913949e13eaba0538f553 which does work and i can see the component when i put it in the file, but it then messes up some of the css on the site, e.g. in dark mode the middle section is still white but the outer is in dark mode...
No description

Trying to clone ChatGPT's UI for an multi-AI agent app powered by AutoGen

I just found opensaas and I'm excited at it's seemingly endless potential. I am building a chat app that will offer autonomous multi agent automation with AutoGen via a ChatGPT-like UI. Originally I looked at using the Chainlit framework for the front end but it doesn't seem to offer the flexibility to clone the UI of ChatGPT. Is this achievable with OpenSaas? Are there any templates available that are clones of ChatGPT?...

Dummy Email Provider OpenSaas

I will only be using Google OAuth for authentication and no email authentication (OpenSaas). Do I still need a email provider? The docs (https://docs.opensaas.sh/guides/email-sending/) state the following: "Note that your app will not build if using the Dummy provider and you must switch to a production-ready provider in order to do so."...

Deploying on fly.io

Hello, I got stuck when trying to deploy using command wasp deploy fly deploy I made launch and setup, I have active db on fly.io. Frontend server app are "pending". While trying to make deploy i got error with prisma in console...

Lazy Loading React Components

When making a large application it is best practice to lazy load components as needed. It seems there is no way to lazy load a route in wasp? ``` route AnotherRoute { path: "/test", to: AnotherRoute } page AnotherRoute {...

Starting npm installwasp-bin: npm: streamingProcess: chdir: invalid argument (Bad file descriptor)

I recently made some entity changes and now I can't seem to get migrate-dev or db studio commands to work. Here are the errors I'm seeing. Anyone seen this before? Thanks! 1. wasp-bin: /home/joe/Repositories/saas-volunteer/app/.wasp/out/: removeDirectoryRecursive:removeContentsRecursive:removeDirectory: unsatisfied constraints (Directory not empty) 2. Starting npm installwasp-bin: npm: streamingProcess: chdir: invalid argument (Bad file descriptor) They don't point to anything particular in my definitions:...

TypeError: Cannot read properties of undefined

Hello, I'm trying to seed my database using my action, but it's saying it cannot read the properties of undefined pointing to the entity type: /// return context.entities.TipoEPI.create(.... /// ...

Is these a server side validation of isAdmin?

On OpenSaaS the following snippet cehcks isAdmin access rights to validate access to the admin page. ```const Dashboard = ({ user }: { user: User }) => { const history = useHistory(); if (!user.isAdmin) { history.push('/');...

nextjs?

I'm a noob and I'm trying to figure out Wasp vs Next JS. I've done some google searching, but I don't understand why it wasn't built around NextJS. Am I missing something? Would there be an advantage to having Wasp being adapted to NextJS? Esp given SSR...

Where to actually code my feature?

I've initialised the saas app, but want to confirm which folder I should start coding my actual app?

Use .env.client : The 'import.meta' meta-property is only allowed when the '--module' option is 'es2

I need to use env variables in my code and following the doc import.meta.env.REACT_APP_PUBLIC_STRIPE_PUBLIC_KEY get this error :
The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.ts(1343)
The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.ts(1343)
...

Hello,

I would like to try mage with gpt4. I created new folder and run wasp new. kubik@KBK:/mnt/c/Users/patku/projects/opensaas/Mageai$ wasp new...