enlightenmental
enlightenmental
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
Thanks. Ignore the IDE issues - That's on me
40 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
db migrate-dev removes models in schema.prisma
@Carlos I confirmed it is NOT removing - the migrate-dev command failed because the app has code issues - so it was not able to get far enough to update the database scheme. (false alarm) I assumed db migrate-dev only updated the database and did not require the app to build.
24 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
db migrate-dev removes models in schema.prisma
@kapa.ai I don't think you're referencing V0.16.0 docs..
24 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
db migrate-dev removes models in schema.prisma
@kapa.ai schema.prisma enum EmailStatus { unknown safe invalid disabled disposable inbox_full catch_all role_account spamtrap } then running migrate-dev returns [ Db ] [-] Removed enums [ Db ] - EmailStatus
24 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
db migrate-dev removes models in schema.prisma
@kapa.ai ^ see last message?
24 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
db migrate-dev removes models in schema.prisma
@kapa.ai can you provide a full example of an entity definition in main.wasp?
24 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
Also - if ts path aliases are not an option, does that mean @src as a WASP-based alias does not work either?
40 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
(I'm running Cloud9 IDE on AWS + EC2, etc... unconventional I know)
40 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
re: manually resolving - I meant how to get the IDE to ignore showing errors in files that ARE importing correctly. e.g. import { type AuthUser } from 'wasp/auth'; throws an error - even though it works fine.
40 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
@Filip Just read your other posts - thank you.
40 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
đŸ¤¨
40 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
@kapa.ai sorry - that was a typo. Corrected error message: error TS2307: Cannot find module '@src/components/logo/Logo' or its corresponding type declarations.
40 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
@kapa.ai I've adjusted tsconfig.json to define the @src alias and prevent IDE errors

"paths": {
"@src/*": ["./src/*"]
}

"paths": {
"@src/*": ["./src/*"]
}
I'm also using imports that are relative to the app /src/ directory. File Path: /myApp/app/src/components/logo/Logo.tsx Import Statement: import { Logo } from '@src/components/logo/Logo'; [WASP] Error Message: error TS2307: Cannot find module '@/components/logo/Logo' or its corresponding type declarations. Any ideas on where I should troubleshoot?
40 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
/wasp/ cannot find module
@kapa.ai I assume I then need to rebuild the database?
25 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
/wasp/ cannot find module
@kapa.ai in main.wasp, can I change the app name app ThisNameHere { }
25 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
/wasp/ cannot find module
@kapa.ai if my tsconfig.json uses "outDir": ".wasp/out/user", and a ts file uses import { type AuthUser } from 'wasp/auth'; what would the paths value be?
25 replies
WWasp
Created by enlightenmental on 5/5/2025 in #đŸ™‹questions
/wasp/ cannot find module
@kapa.ai The app runs correctly. What IDE change can be made to silence these errors?
25 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
@kapa.ai show me a code example of tsconfig.json configured to resolve @src imports and how @src would be used in a project based on a standard directory structure (e.g. /src/component/file.tsx)
40 replies
WWasp
Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
@kapa.ai How would someone manually resolve paths to correct this issue?
40 replies