#'blabla' does not exist on 'blabla'
88 messages · Page 1 of 1 (latest)
also this
app.register(fastifySecureSession, {
key: Buffer.from(process.env.COOKIE_SECRET!, 'hex'),
cookieName: 'session_id',
cookie: {
httpOnly: true,
path: '/',
},
});
.
Well we can't help much without more code and context
idk how to give you any more context bro ive been stuck with this for a day now.
I mean the error was kinda self explantory, unless you didn't expect that it's a string (and maybe it even shouldn't be?)?
its whatever coming from the api
what would fix that code
Well, if it should indeed be a string, then just... Don't Access nonexsistent properties on it
how do i fix it
spoonfeed me this timme
Are the types correct in the first place, should it be a string?
i dont know bro
im not the one who wrote this code
i tried reading it its pain in the ass
but it should be string
so lets sat its string
And will dateCreated property actually exsist on it?
That means you somehow passed undefined
Make sure whatever uou're oassing actually exsists
Is it even caused by part of your code?
what else would it be caused by
show us dashboard.tsx line 67
thats not about this error
we need the stack trace
you're giving us very little information
i just have this
nothing else
show the stack trace please
Please don't ping people who are helping you.
src/index.ts:44 is what?
okay.. what is process.env.COOKIE_SECRET
buddy why should i give you my cookie secret
im not asking for it, "buddy"
im asking what the type of it is
and how its being passed
string
because it looks to be undefined
and how is it being passed?
i don't know that part
what did you do
i think its because theres no .env file
i pulled from github
not added .env
yup
lmao
yeah its a smtp error
it's the email that smtp clients fill when someone hits reply
so from: [email protected] reply-to: [email protected], the reply is to: [email protected]
this is off-topic now
please type !resolved to close this thread & find a related server
cors error is actually on typescript backend we made
!resolved
!resolved
🤣 idk i did a random seach and ended up here
this thread is epic
sorry no offense
Did you just awaken a really dead thread . . . ðŸ˜