Chris
Chris
WWasp-lang
Created by Chris on 4/30/2023 in #đŸ™‹questions
[Solved] Server side relative import fails to find the file
I'm attempting to create utility style files for the server but unable to import them properly in the server files. Per the docs: https://wasp-lang.dev/docs/language/overview (has almost exactly what I'm attempting to do)
import { doSomeThing } from './serverUtils'
import { generateImage } from '../shared/chatActions'
import { doSomeThing } from './serverUtils'
import { generateImage } from '../shared/chatActions'
It's throwing an error:
Cannot find module '...../.wasp/out/server/dist/ext-src/serverUtils'
Cannot find module '...../.wasp/out/server/dist/ext-src/serverUtils'
https://github.com/Kikketer/StorAI/blob/5463f03fb3ff799dd1737f55a55d0b1ff4247246/src/server/actions.ts#L3-L3
5 replies
WWasp-lang
Created by Chris on 4/30/2023 in #đŸ™‹questions
[Solved] Tutorial: Auth redirect simply throws 500
I'm currently following along in the tutorial and got to the authentication step. I then migrated the database with the new User entity and copy/pasting the authentication pages. But now when I simply hit the "root" page / it doesn't redirect me to the login/signup pages. It simply hits the /me endpoint and throws a 500 error: HttpError not defined. The branch with this error can be found here: https://github.com/Kikketer/StorAI/blob/56b2c05be64be57bb370d2d3ec03a76119b40279/main.wasp#L11-L11 The step I was on is here: https://wasp-lang.dev/docs/tutorials/todo-app/06-auth#updating-mainpage-page-to-check-if-the-user-is-authenticated
12 replies