randopixel
randopixel
WWasp-lang
Created by randopixel on 10/18/2024 in #đŸ™‹questions
Clear wasp api endpoint imports errors in ide?
Is there a way to fix these annoying things? VSCode errors every wasp api endpoint in the imports.
8 replies
WWasp-lang
Created by randopixel on 10/10/2024 in #đŸ™‹questions
OpenSaas setting up teams?
Can anyone tell me how difficult it is to set up teams and team subscriptions with the OpenSaaS template?
5 replies
WWasp-lang
Created by randopixel on 10/8/2024 in #đŸ™‹questions
Problems with operations
I am trying to set up a simple crm foundation. I have added the schema entries and updated schema, i have added the routing and queries/actions to the wasp file, making sure to use the proper pathing - "@src/crm/operations" and routing: route CRMRoute { path: "/crm", to: CRMPage } page CRMPage { authRequired: true, component: import CRMMain from "@src/crm/CRMMain" } all of my components import from 'wasp/client/operations' but, for some reason the system is trying to find the operations in wasp/ext-src/crm/operations. [ Wasp ] server/operations/actions/index.ts(13,52): error TS2307: Cannot find module 'wasp/ext-src/crm/operations' or its corresponding type declarations. [ Wasp ] There are types at '/mnt/d/wasp-projects/st-saas/app/node_modules/wasp/dist/ext-src/crm/operations.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. [ Wasp ] server/operations/actions/index.ts(14,52): error TS2307: Cannot find module 'wasp/ext-src/crm/operations' or its corresponding type declarations. Can anyone tell me whats going on?
5 replies
WWasp-lang
Created by randopixel on 9/22/2024 in #đŸ™‹questions
Understanding api/ backend communication
Hey guys, let me preface this with I am a complete hack, still working to learn js, much less node/ react, so I'm hitting above my pay grade messing around with WASP and open-saas. I'm trying to come to grips with how WASP and open-saas handle the backend stuff from the front end. In node, I had services set up for my components and also an api with api endpoints. I'm under the impression that this setup is replaced by the operations setup? I notice operations files with the TSX files that require backend services, but I'm not sure how to register these operations files and how that relays to the server side in wasp/server/operations. Am I anywhere close? What am I missing/ misunderstanding? Any help would be amazing.
8 replies