DEV Community

Discussion on: 🍝 Cooking a Deliveroo clone with Next.js (React), GraphQL, Strapi and Stripe - 🏗️ Setup (part 1/7)

Collapse
 
gameoverwill profile image
Wilfredo Pérez

Hi Ryan, I'm doing the tutorial but I have one issue that I don't know how to figure it out.

In the part

Edit the index.js

I'm getting this error "Component is not defined at index.js" but If I add in the index:

´´´import React, { Component } from "react";´´´

the error changes to isAuthenticated is not defined

Can you help me with that?

Collapse
 
ryanaz profile image
Ryan • Edited

Sure Wilfredo, is the error coming from the Layout component or the index.js component on this step? In your Layout.js file you can remove isAuthenticated in the return statement, it's currently not used in this step and we will add it in later. Can you give that a try?

Collapse
 
gameoverwill profile image
Wilfredo Pérez

Yes, Ryan thanks for responding me. I removed and everything is working. thanks for your help and for this tutorial.

Thread Thread
 
ryanaz profile image
Ryan

Your welcome, I corrected the gist as well to have that variable removed at this step

Thread Thread
 
gameoverwill profile image
Wilfredo Pérez

Thanks a lot for your time and for sharing this awesome tutorial, for anything on this on the others tutorial I'll ping you.