Sam Jakshtis
Sam Jakshtis
WWasp-lang
Created by Sam Jakshtis on 7/23/2024 in #đŸ™‹questions
Migration to 0.14 Issue with Prisma
My Auth is not recognizing the User field from my prisma file. Here is the main wasp declaration: app Realti { wasp: { version: "^0.14.0" }, title: "Realti", auth: { userEntity: User, methods: { usernameAndPassword: { userSignupFields: import { userSignupFields } from "@src/components/Reusables/extrasignups", }, }, onAuthFailedRedirectTo: "/login", }, db: { system: PostgreSQL } } but my error is Type error: Undefined identifier: User. My Prisma is: datasource db { provider = "postgresql" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" } model User {
id Int @id @default(autoincrement()) first_name String @default("") last_name String @default("") favorites Favorite[] }
13 replies
WWasp-lang
Created by Sam Jakshtis on 7/1/2024 in #đŸ™‹questions
Vite.Config.Js and import Issues
Maybe specific to me/my abilities, but struggling importing some things with control access via vite.config.js. I am trying to import from public folder, @import "../../public/assets/fonts/gordita/stylesheet.css"; @import "../../public/assets/fonts/bootstrap-icons-1.11.1/font/bootstrap-icons.css"; @import "../../public/assets/fonts/font-awesome-6.4.2/css/all.css"; @import "../../public/assets/scss/style.scss"; Heres the vite config: import { defineConfig } from 'vite'; export default defineConfig({ server: { fs: { allow: ['.'] }, }, }) /// <reference types="vite/client" /> but still getting error: [ Client!] The request url "X" is outside of Vite serving allow list. I have exhausted every resource trying to get this to work and wondering if its to do with Wasp or just myself. Thanks for all the help!
18 replies
WWasp-lang
Created by Sam Jakshtis on 5/30/2024 in #đŸ™‹questions
React Router Dependency Issue
Getting an error: Error: Dependency conflict for user dependency (react-router-dom, ^6.23.1): Version must be set to the exactly the same version as the one wasp is using: ^5.3.3 Is Wasp on V5? If so, are there plans to update?
7 replies
WWasp-lang
Created by Sam Jakshtis on 5/20/2024 in #đŸ™‹questions
Trying to globally install Wasp with ZSH
I have been trying to configure my device (MacOS M1 Pro Ventura 13.4) with 'wasp completion'. However, my profile is a zsh profile. I have tried using oh-my-zsh and other ways, but still cant get it to work. I am sure its something obvious, but any help would be super appreciated thanks everyone! #đŸ™‹questions
24 replies