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?
![No description](https://cdn.answeroverflow.com/1085300179466473503/Screenshot_2023-03-14_at_1.28.44_PM.png)
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
ratty-blushโข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 ๐extended-salmonโข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 ๐
ratty-blushโข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
extended-salmonโข2y ago
is that the same project as the video tutorial?
extended-salmonโข2y ago
also i am now getting these errors
![No description](https://cdn.answeroverflow.com/1085303503305576568/Screenshot_2023-03-14_at_1.43.40_PM.png)
ratty-blushโข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 ๐ค
extended-salmonโข2y ago
its ok no worries. I really appreciate all the help!
ratty-blushโข2y ago
duh! Its
defaultValues
not defaultValue
๐
extended-salmonโข2y ago
i had it as defaultValues but then in the error console it said to change to defaultValue
ratty-blushโข2y ago
Adding this to the list of fixes to be done ๐ช
extended-salmonโข2y ago
![No description](https://cdn.answeroverflow.com/1085304640242987099/Screenshot_2023-03-14_at_1.48.11_PM.png)
ratty-blushโข2y ago
Can you show me where the
AuthPage
component is imported?