saas-js / saas-ui

The React component library for startups, built with Chakra UI.
https://saas-ui.dev
MIT License
1.23k stars 118 forks source link

Error on StepForm component "ContextError: useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`" #192

Closed dadsgone0 closed 5 months ago

dadsgone0 commented 5 months ago

Hello!

I am facing an issue with the StepForm component that i believe is a bug.

With this code https://pastebin.com/8JcLstcu (This code was copy-and-pasted from the docs on the website)

I get this error

error

If you could help me, or tell me if I'm just being dumb, please LMK!

linear[bot] commented 5 months ago

SUI-382 Error on StepForm component "ContextError: useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"

Pagebakers commented 5 months ago

Which package manager are you using?

Have you installed latest versions of @saas-ui/react and @saas-ui/forms?

dadsgone0 commented 5 months ago

I use NPM, because I have had a bad experience with PNPM. I made sure I had those packages installed already, no change.

On Fri, Jan 12, 2024, 5:30 AM Eelco Wiersma @.***> wrote:

Which package manager are you using?

Have you installed latest versions of @saas-ui/react and @saas-ui/forms?

— Reply to this email directly, view it on GitHub https://github.com/saas-js/saas-ui/issues/192#issuecomment-1888928398, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUDPSQ27MR2MTWZMDSCAOUDYOENFLAVCNFSM6AAAAABBXOMALGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYHEZDQMZZHA . You are receiving this because you authored the thread.Message ID: @.***>

Pagebakers commented 5 months ago

I made some changes in @saas-ui/react@2.5.4 and @saas-ui/forms@2.3.8 that might resolve this. Please update and give it another try :)

dadsgone0 commented 5 months ago

I will check when I get home, thank you!

On Fri, Jan 12, 2024, 7:59 AM Eelco Wiersma @.***> wrote:

I made some changes in @@. and @@. that might resolve this. Please update and give it another try :)

— Reply to this email directly, view it on GitHub https://github.com/saas-js/saas-ui/issues/192#issuecomment-1889281848, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUDPSQ3I2LRJFNKZUNRGXQTYOE6UTAVCNFSM6AAAAABBXOMALGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGI4DCOBUHA . You are receiving this because you authored the thread.Message ID: @.***>

dadsgone0 commented 5 months ago

These changes did not fix it. No change in the error.

Pagebakers commented 5 months ago

Thanks for the update, i'll do some further investigation.

Pagebakers commented 5 months ago

Not able to reproduce this yet, can you share the package.json please?

dadsgone0 commented 5 months ago

Here you go.

package.json

Pagebakers commented 5 months ago

Solved it by updating both packages to latest:

"@saas-ui/forms": "^2.3.8",
"@saas-ui/react": "^2.5.4",