Wasp-lang

W

Wasp-lang

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

Join

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...

Deploying a new Module as Separate App to fly.io

I'm using the Open SaaS template. In the client module, I'd like to establish a new module that can be deployed as a separate app to fly.io or other providers. How can I accomplish this?

504 Outdated Optimize Depth when adding any UI library

I've tested this with several libraries (primarily next ui and chakra) The error itself points to vite (it points to the .vite/<ui library> directory of node modules), but I've reinstalled all deps and npm cache multiple times and done hard resets on chrome. Testing on chrome using wasp 0.11.8...
No description

schema errors how to solve

I am getting the below error while running wasp db migrate-dev command , please help me solve it. I have also attached my main.wasp and schema.prism file....
No description

payment tiered access control middleware

Hi, I know wasp integrated with stripe, and defined 3 tiers, how can I add an access control? like hobby can upload 5 times, read 20 times, pro can upload 20 times, read unlimited, enterprise everything unlimited, like I was thiking of add a middleware to my specific api, but will the middleware has to be global? or do you have have any solution for this type of feature? Thank you. @miho @sodic...

Does Wasp support other LLMs such as Claude or open-source models from Hugging face?

Hi everyone, I recently came across this project and was very intrigued. Props to the team for their work on this! Before getting started with wasp, I wanted to check if it has the flexibility to support any LLMs. If not, I would be interested in integrating a chatbot I created using FlowiseAI and was wondering if that is possible as well.

checkStripePortalLInkExists in shared/constants.ts

I'm using OpenSaas with with wasp 0.13.2 and WSL2. The documentation (https://docs.opensaas.sh/guides/stripe-integration/) says to add this code to the src/shared/constants.ts file: ```javascript const customerPortalTestUrl = 'https//billing.stripe.com/p/login/test_...' const customerPortalProdUrl = undefined...