#Form erroring when submiting??

79 messages ยท Page 1 of 1 (latest)

cobalt schooner
#

when submting the a error pop in up

silver portal
#

Are you trying to call a parse() somewhere? Show code for the form?

upbeat raven
#

We would need to see the repo or a sandbox reproduction to help

cobalt schooner
#

am not calling parse

#

its the code of the action that does that

#

any time i use the button submit it throw this

#

code is oss will show

#

it does not throw error on prod

#

only annoying since there is a component that that lose reactivity when throwing the error ๐Ÿ˜ญ

upbeat raven
#

Why do you call the active.value = false both on the button and in the action?

cobalt schooner
#

trying things

#

lmao

upbeat raven
#

Been there, no worries

#

Have you isolated the error down at all? Ie removing essentially everything except the form and the button and the action and seeing if it still throws?

cobalt schooner
#

yes

#

a <form> with a submit>

#

idk why its just throw this error

#

not even with an action

upbeat raven
#

On 1.7.1?

cobalt schooner
#

yes

#

i am using a auth module

#

idk if change anything

#

but

#

someone said i should put the cookie thing in a special place in the vite config

#

tried that did not change anything

upbeat raven
#

Well your error is yelling about the cookie.. so I'm assuming it's more so that than the form

cobalt schooner
#

truu but why it only yell when sending a form?

#

๐Ÿ‘€

upbeat raven
#

So in a fresh project without auth your form works fine?

#

What auth are you using?

cobalt schooner
#

should try

#

let me do this in a sandbox

#

yes

#

on its own

#

it wont throw

#

omg

#

whis is qwik.new 1.43

upbeat raven
#

Yeah you just gotta update it manually ATM

#

Sounds like you need to look into your auth solution?

cobalt schooner
#

i have 2 button in my form

#

both of them cose this

#

litteraly a full page reload ๐Ÿ˜ฆ

#

why does this break i feel like what i am doing is pretty simple

#

a form in a page behind a auth wall ?

upbeat raven
#

You using qwik auth?

#

Nvm just looked at repo.. appears you are

#

Though looks like you are on the old version

cobalt schooner
#

alright

#

i got it

#

add cookie In exclude

cobalt schooner
#

i had exclude:cookie

upbeat raven
#

I was just about to ask about that

cobalt schooner
#

and forgot to include auth in optimize

upbeat raven
#

Yeah looks like that part of the docs was removed

cobalt schooner
upbeat raven
#

The adapter i think should do it for you but the old docs said what it did as well

cobalt schooner
#

in the cli it show it

cobalt schooner
#

it

#

it ask you manualy add it

upbeat raven
#

Yeah not anymore

cobalt schooner
#

๐Ÿคทโ€โ™‚๏ธ

upbeat raven
#

The docs should be updated to state you need to do it if it's manual

#

Or linked to official qwik auth docs

cobalt schooner
#

let me see this

#

ye

#

nothing in the docs

#

๐Ÿ˜ฆ

upbeat raven
#

You know darn well people don't read the output of the CLI

cobalt schooner
#

i will open a pr for it ๐Ÿ˜‰

upbeat raven
#

Yeah it used to be there, when they changed it to be the qwik auth it must have been removed

cobalt schooner
#

the new version does not need it

#

that why its not there

#

but the cli has not been updated

#

or atleast deployed