Git Product home page Git Product logo

Comments (8)

bradtraversy avatar bradtraversy commented on August 26, 2024

The qty selector happened to me at one point. I am pretty sure it is the Bootswatch theme. Try adding the standard Bootstrap CDN in your public/index.html file

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">

And comment out the bootswatch link in the index.js file. Let me know if you still can't see it

from proshop_mern.

talmax1124 avatar talmax1124 commented on August 26, 2024

The qty selector happened to me at one point. I am pretty sure it is the Bootswatch theme. Try adding the standard Bootstrap CDN in your public/index.html file

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">

And comment out the bootswatch link in the index.js file. Let me know if you still can't see it

I see the numbers now in the selector but in the console state > pin when I add an item to cart, it is not showing up in the tree. It stays blank. Also it is not showing in localstorage. I have watched the videos for about 5 times already.

Screen Shot 2020-10-19 at 4 40 39 PM

@bradtraversy @basir

from proshop_mern.

bradtraversy avatar bradtraversy commented on August 26, 2024

Can you link your repo or send your code/repo to [email protected]?

from proshop_mern.

talmax1124 avatar talmax1124 commented on August 26, 2024

Can you link your repo or send your code/repo to [email protected]?

I sent you an email with my email being [email protected]

from proshop_mern.

talmax1124 avatar talmax1124 commented on August 26, 2024

@bradtraversy The repo is also in the top

from proshop_mern.

bradtraversy avatar bradtraversy commented on August 26, 2024

ok, two errors..

  1. In your cartScreen you are not getting the product id because you have

const productID = match.params.div

should be

const productID = match.params.id

  1. In your cart reducer in the else for if (existItem) you have the same
    thing happening as in the if. This should be
return {
          ...state,
          cartItems: [...state.cartItems, item],
        }

Check your code with the final repo

Please close any issues and q/a if this fixes it

from proshop_mern.

talmax1124 avatar talmax1124 commented on August 26, 2024

@bradtraversy Ok, yes now it shows in the state tree. How can I fix the the 3 errors in the console?
image

It only appears in Chrome. Do you know how to fix these errors?

from proshop_mern.

bradtraversy avatar bradtraversy commented on August 26, 2024

I am not sure why you are getting those errors, I did not get them when I ran your code. If you are still having issues, please post on Udemy q/a instead of github. This is not for student code issues, it is for bugs with the repo. Thanks :)

from proshop_mern.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.