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

I get the error "Cannot read property 'logisticsInfo' of undefined" #1

Open
gabrielbarbera opened this issue Jul 31, 2018 · 2 comments

Comments

@gabrielbarbera
Copy link

I get the error "Cannot read property 'logisticsInfo' of undefined" when using "richShippingData" helper. How can i fixit?

@kevinch
Copy link
Contributor

kevinch commented Oct 2, 2018

@gandalfmza Can you paste the code you're using here so we can have a look?

@joebengos
Copy link

The error is in the windows system file. When I run the project it does not load json into the HBS files and this generates undefined variables. I did a replace grocer on line 67 of the gulp file and resolved it.

From
file.path.replace( /(temp\/)(\w|-)+(\/)((\w|-)+)(\.hbs)/g, 'source/data/'+ orderJsonToRead +'/$4.json' )

To
file.path.replace('temp','source').replace('en-US','data\\vtex').replace('pt-BR','data\\vtex').replace('.hbs','.json')

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

3 participants