Sven
Sven
WWasp-lang
Created by Sven on 9/18/2024 in #đŸ™‹questions
Error calculating daily stats
The calculation of the daily stats which i assume is an automatic process gives these errors: [ Server!] at getTotalPageViews (/home/sven/SaaS//app/src/analytics/providers/plausibleAnalyticsUtils.ts:49:11) [ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [ Server!] at getDailyPageViews (/home/sven/SaaS//app/src/analytics/providers/plausibleAnalyticsUtils.ts:28:22) [ Server!] at calculateDailyStats (/home/sven/SaaS/t/app/src/analytics/stats.ts:56:55) [ Server!] at async resolveWithinSeconds (/home/sven/SaaS//app/node_modules/pg-boss/src/manager.js:34:14) [ Server!] at async /home/sven/SaaS//app/node_modules/p-map/index.js:57:22 [ Server!] Error calculating daily stats: Error: HTTP error! Status: 401 [ Server!] at getTotalPageViews (/home/sven/SaaS/=ot/app/src/analytics/providers/plausibleAnalyticsUtils.ts:49:11) [ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [ Server!] at getDailyPageViews (/home/sven/SaaS//app/src/analytics/providers/plausibleAnalyticsUtils.ts:28:22) [ Server!] at calculateDailyStats (/home/sven/SaaS//app/src/analytics/stats.ts:56:55) [ Server!] at async resolveWithinSeconds (/home/sven/SaaS/B/app/node_modules/pg-boss/src/manager.js:34:14) [ Server!] at async /home/sven/SaaS//app/node_modules/p-map/index.js:57:22 [ Server!] Error calculating daily stats: Error: HTTP error! Status: 401 [ Server!] at getTotalPageViews (/home/sven/SaaS/ot/app/src/analytics/providers/plausibleAnalyticsUtils.ts:49:11) [ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [ Server!] at getDailyPageViews (/home/sven/SaaS/ot/app/src/analytics/providers/plausibleAnalyticsUtils.ts:28:22) [ Server!] at calculateDailyStats (/home/sven/SaaS/B/app/src/analytics/stats.ts:56:55) [ Server!] at async resolveWithinSeconds (/home/sven/SaaS/t/app/node_modules/pg-boss/src/manager.js:34:14)
12 replies
WWasp-lang
Created by Sven on 9/17/2024 in #đŸ™‹questions
cannot find module ...payment/plans
[ Server!] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/sven/SaaS/p/app/.wasp/out/sdk/wasp/dist/ext-src/payment/plans' imported from /home/sven/SaaS/p/app/.wasp/out/sdk/wasp/dist/ext-src/payment/operations.js [ Server!] at __node_internal_captureLargerStackTrace (node:internal/errors:496:5) [ Server!] at new NodeError (node:internal/errors:405:5) [ Server!] at finalizeResolution (node:internal/modules/esm/resolve:327:11) [ Server!] at moduleResolve (node:internal/modules/esm/resolve:946:10) [ Server!] at defaultResolve (node:internal/modules/esm/resolve:1132:11) [ Server!] at nextResolve (node:internal/modules/esm/loader:163:28) [ Server!] at ESMLoader.resolve (node:internal/modules/esm/loader:835:30) [ Server!] at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) [ Server!] at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) [ Server!] at link (node:internal/modules/esm/module_job:76:36) { [ Server!] code: 'ERR_MODULE_NOT_FOUND' [ Server!] } [ Server!] [ Server!] Node.js v18.18.0 [ Server ] [nodemon] app crashed - waiting for file changes before starting...
20 replies
WWasp-lang
Created by Sven on 9/16/2024 in #đŸ™‹questions
getting error when implementing a query
I am implementing a query that gets user credentials form the db, uses these to fetch data and return the data to the client side. But i get this error: [ Wasp ] server/operations/queries/index.ts(63,14): error TS2322: Type '(args: unknown, context: { user: AuthUser; }) => Promise<Payload>' is not assignable to type '(args: any, context: { user: AuthUser; }) => Promise<void | { [date: string]: OrderData; }>'. [ Wasp ] Type 'Promise<Payload>' is not assignable to type 'Promise<void | { [date: string]: OrderData; }>'. [ Wasp ] Type 'Payload' is not assignable to type 'void | { [date: string]: OrderData; }'. [ Wasp ] Type 'string' is not assignable to type 'void | { [date: string]: OrderData; }'. [ Wasp ] server/operations/queries/index.ts(63,62): error TS2344: Type '(args: any, context: any) => Promise<{ [date: string]: OrderData; } | void>' does not satisfy the constraint 'GenericAuthenticatedOperationDefinition'. [ Wasp ] Type 'Promise<void | { [date: string]: OrderData; }>' is not assignable to type 'Payload | Promise<Payload>'. [ Wasp ] Type 'Promise<void | { [date: string]: OrderData; }>' is not assignable to type 'Symbol | Set<SuperJSONValue> | Map<SuperJSONValue, SuperJSONValue> | Promise<Payload>'. [ Wasp ] Type 'Promise<void | { [date: string]: OrderData; }>' is not assignable to type 'Promise<Payload>'. [ Wasp ] Type 'void | { [date: string]: OrderData; }' is not assignable to type 'Payload'. [ Wasp ] Type '{ [date: string]: OrderData; }' is not assignable to type 'Payload'. [ Wasp ] Type '{ [date: string]: OrderData; }' is missing the following properties from type 'Date': toDateString, toTimeString, toLocaleDateString, toLocaleTimeString, and 37 more. [ Wasp ] server/operations/queries/index.ts(65,5): error TS2345: Argument of type '(args: any, context: any) => Promise<{ [date: string]: OrderData; } | void>' is not assignable to parameter of type 'GenericAuthenticatedO
49 replies
WWasp-lang
Created by Sven on 9/15/2024 in #đŸ™‹questions
Ios abb subscription and login auth
How would I make a user authorized to use an ios app if they have a certain subscription? Also how would I do this with login.
13 replies
WWasp-lang
Created by Sven on 9/12/2024 in #đŸ™‹questions
Recommendation for deploying and database
Hi I have been thinking about the deployment of my app and the database. I currently already have a postgress database running with lots of data in it (but i dont use it yet in development). What i did with development now is add these exact tables that are in the "actual" postgres database in the "development" database through the prisma scheme (for testing purposes). Now I have been thinking on what to do when deploying my app: 1. Add the Models (tables) that are in the "dev" table to my own database, that are not there yet like: Auth, AuthIdentity etc. 2. Maybe there is some way to keep the current local database (fill the tables with the actual data) and deploy this one. What would be the easiest and what are your recommendations?
22 replies
WWasp-lang
Created by Sven on 9/12/2024 in #đŸ™‹questions
How to keep client credentials for a third party platform safe
The users of my SaaS are using a third party platform to sell goods, now this platform offers an API to which we as software can connect to using the clients credentials. It consists of a client-id and client-secret, which both can be found in the users account. Question: How do I keep these safe and also stored optimally, such that the Software can easily use the credentials per user and doesn't accidentally use the credentials of another user?
98 replies
WWasp-lang
Created by Sven on 9/11/2024 in #đŸ™‹questions
How do i use the darkmodeswitcher component from the template in my other pages?
How do i implement the element specifically to let it work
14 replies
WWasp-lang
Created by Sven on 9/10/2024 in #đŸ™‹questions
When trying to perform a database action i get network error. Also when trying to register
When i try to perform a database action or register an account i get network error. I did
wasp start db
wasp start db
PostgreSQL Database directory appears to contain a database; Skipping initialization

2024-09-10 16:27:54.750 UTC [1] LOG: starting PostgreSQL 14.4 (Debian 14.4-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-09-10 16:27:54.751 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-09-10 16:27:54.751 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-09-10 16:27:54.757 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-09-10 16:27:54.766 UTC [26] LOG: database system was shut down at 2024-09-10 16:27:48 UTC
2024-09-10 16:27:54.773 UTC [1] LOG: database system is ready to accept connections
PostgreSQL Database directory appears to contain a database; Skipping initialization

2024-09-10 16:27:54.750 UTC [1] LOG: starting PostgreSQL 14.4 (Debian 14.4-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-09-10 16:27:54.751 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-09-10 16:27:54.751 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-09-10 16:27:54.757 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-09-10 16:27:54.766 UTC [26] LOG: database system was shut down at 2024-09-10 16:27:48 UTC
2024-09-10 16:27:54.773 UTC [1] LOG: database system is ready to accept connections
When i do
wasp db studio
wasp db studio
the prisma thingy opens and i see all the tables.
20 replies
WWasp-lang
Created by Sven on 9/10/2024 in #đŸ™‹questions
Wasp can't run PostgreSQL dev database for you since port 5432 is already in use.
When i do wasp start db, it gives the following error
Wasp can't run PostgreSQL dev database for you since port 5432 is already in use.
Wasp can't run PostgreSQL dev database for you since port 5432 is already in use.
How come that, could i be a different wasp project that i also had which took that port?
14 replies
WWasp-lang
Created by Sven on 9/10/2024 in #đŸ™‹questions
What file can i change login page colors
hi kapa in what file can i change the login page colors from yellow to another color. i use SaaS 3 template
9 replies
WWasp-lang
Created by Sven on 9/10/2024 in #đŸ™‹questions
header of landing page showing on different route
I made a new route and page see the route below
route Databaseroute { path: "/dashboard/productdatabase", to: DatabasePagee }
page DatabasePagee {
component: import { DatabasePagee } from "@src/mainpages/DataBasePage"
}
route Databaseroute { path: "/dashboard/productdatabase", to: DatabasePagee }
page DatabasePagee {
component: import { DatabasePagee } from "@src/mainpages/DataBasePage"
}
Now when i go to this route the page is ofcourse shown but also still the header/ top bar of the landing page is shown over it. How can i fix this? I use the SaaS [3] template
24 replies
WWasp-lang
Created by Sven on 9/8/2024 in #đŸ™‹questions
I have a wasp project with shadcn
I get the following error when importing a shadcn block into my mainpage. next_image.js?v=f050d64e:2277 Uncaught ReferenceError: process is not defined at ../../../node_modules/next/dist/client/image-component.js (next_image.js?v=f050d64e:2277:21) at require (chunk-G3PMV62Z.js?v=f050d64e:8:50) at ../../../node_modules/next/dist/shared/lib/image-external.js (next_image.js?v=f050d64e:2569:27) at require (chunk-G3PMV62Z.js?v=f050d64e:8:50) at ../../../node_modules/next/image.js (next_image.js?v=f050d64e:2593:22) at __require (chunk-G3PMV62Z.js?v=f050d64e:8:50) at next_image.js?v=f050d64e:2596:16
7 replies
WWasp-lang
Created by Sven on 9/8/2024 in #đŸ™‹questions
help from kapa on error with shadcn
solved
7 replies
WWasp-lang
Created by Sven on 9/7/2024 in #đŸ™‹questions
How do I create a good sidebar UI
I want to know how i can create easily a nice UI with a sidebar
5 replies
WWasp-lang
Created by Sven on 9/6/2024 in #đŸ™‹questions
Question about client and server side data handling
So for my SaaS i have a big table (currently in postgressql) with products as entities if I tell this correct. So right now i have a test Table with the same format as my actual table but then with just test data in it. What I want is a page where the user/client sees all products and their data in a nice designed way. What is the best way of doing this? Before i thought i should deploy an API that connects to the db and then using this API i would dynamically fetch the data to create elements. I know that the boilerplate allows the actions/queries to get this data, but is this a good way for my application?
30 replies
WWasp-lang
Created by Sven on 9/3/2024 in #đŸ™‹questions
multiple features
Hi is it possible to create multiple pages for custom features with this boilerplate? Couldn’t acces internet so trying to figure out through this way. Thanks alot
41 replies