Closed Umair-Munir closed 7 years ago
You can add the following code snippet:
<script>
document.addEventListener('snipcart.ready', function() {
Snipcart.DEBUG = false;
});
</script>
It will disable warning messages.
Is there any way to resolve these warning messages instead of hiding messages in console? Whenever, I try to use locale of any language other than "en" these warnings messages are displayed in console.
I just merged the pull request you sent this week. Should be live in the next couple of minutes! It should solve the issue here.
Yes, almost all the warning messages have been removed. But I am still getting this warning message when I try to use locale other than en
.
I am facing the same issue and error message as @Umair-Munir Are there any updates on this? It does not seem to affect any functionality but for people who are new to Snipcart the error message might be confusing. Maybe re-open the issue?
@couellet Yup, same problem for me. Can we please fix this?
Snipcart.DEBUG = false;
does not prevent the console from being filled with those language related logs.
I have changed language from
en
tode
. I have done all the configurations given in "Snipcart Documentation". But I am still getting warnings in logs whenever the page is reloaded.I have file "de.js" loaded in my application. But, It is still unable to find that file and try to search for
en
. These are parts of my configurations In HTML filein "de.js" file the code looks something like this
How can I prevent this warnings?