Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to init #175

Open
choujar opened this issue Mar 9, 2020 · 1 comment
Open

Unable to init #175

choujar opened this issue Mar 9, 2020 · 1 comment

Comments

@choujar
Copy link

choujar commented Mar 9, 2020

Hi folks,

I've tried to follow the setup very closely as per the guide, but right at the init:

CartJS.init({{ cart | json }}, { dataAPI: true });

I get this error:

cart.min.js:5 Uncaught TypeError: Cannot read property 'items' of undefined at cart.min.js:5

I know that:

  • jQuery is working
  • CartJS is included

What's the step that I'm missing?

Thanks in advance!

@gavinballard
Copy link
Member

Hi @choujar, apologies for the delayed response on this. I have very limited time for Cart.js these days.

If this is still an issue, can you please point me to a publicly-accessible Shopify site that reproduces the issue, ideally as a minimal test case (ie without lots of other third party libraries that may be causing the issue)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants