Authenticated not defined error
I'm following a Javascript Mastery tutorial, but when I create a new refine app, I keep getting this error. Can anyone help me fix this?
18 Replies
Hey @hwak0360! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, I can point you to the Refine vs Redwood.js blog post (https://refine.dev/blog/refine-vs-redwood-js/) which has a section on authentication. It provides instructions on how to set up authentication with Auth0, including how to set up the environment variables and restart the development server. It also provides a link to the Auth0 signup page.
I hope this helps!
----------------------
refine vs RedwoodJS | refine
We will compare two open source React frameworks, that can be used to build CRUD applications
<@231593757324214274> kapa.ai is still learning and improving, please let us how it did by reacting below
extended-salmonโข2y ago
I'm guessing the
Authenticated
component is not imported from @refinedev/core
. Can you add this to the page where its used?
Also can you share the options you've selected during the creation process? We will fix the error as soon as possible for the new projects ๐ambitious-aquaOPโข2y ago
yes of course. I used CRA, add example pages, materialUI, REST API, GoogleAuth, and no i18n
I will look into that, thank you for the fast response! ill let you know if it fixes ๐
extended-salmonโข2y ago
You may also want to check out the example here https://github.com/refinedev/refine/tree/next/examples/mern-dashboard-client
You can use the command below to install it on your local:
We're releasing the refine's v4 and you might get a different output from
create-refine-app
than the video tutorial , that's because the boilerplates are also updated for the new version ๐
GitHub
refine/examples/mern-dashboard-client at next ยท refinedev/refine
Build your React-based CRUD applications, without constraints. - refine/examples/mern-dashboard-client at next ยท refinedev/refine
ambitious-aquaOPโข2y ago
is that the same project as the video tutorial?
ambitious-aquaOPโข2y ago
also i am now getting these errors
extended-salmonโข2y ago
Yes, also mentioned in the description of the video actually
Sorry for the issues ๐คฆโโ๏ธ Checking the first one now, looks like there's a mistype ๐ค
Box
is now should be imported from @mui/material
instead of @refinedev/mui
.Sorry for the issues ๐คฆโโ๏ธ Checking the first one now, looks like there's a mistype ๐ค
ambitious-aquaOPโข2y ago
its ok no worries. I really appreciate all the help!
extended-salmonโข2y ago
duh! Its
defaultValues
not defaultValue
๐
ambitious-aquaOPโข2y ago
i had it as defaultValues but then in the error console it said to change to defaultValue
extended-salmonโข2y ago
Adding this to the list of fixes to be done ๐ช
ambitious-aquaOPโข2y ago
extended-salmonโข2y ago
Can you show me where the
AuthPage
component is imported?ambitious-aquaOPโข2y ago
Sorry im not too sure. I'm pretty confused. Is this what you mean?
extended-salmonโข2y ago
Yeah, that was what i meant, thank you! Can you remove the
AuthPage
import from @refinedev/core
and import it from @refinedev/mui
like:
This should resolve the issue ๐ambitious-aquaOPโข2y ago
wooooo!!! that fixed it
thank you so much!