cartjs icon indicating copy to clipboard operation
cartjs copied to clipboard

Unable to init

Open choujar opened this issue 4 years ago • 1 comments

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!

choujar avatar Mar 09 '20 13:03 choujar

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)?

gavinballard avatar May 16 '20 07:05 gavinballard