I have same issue may be its default issue,
I have solved using xml file,
You have to enable wishlist module and go to your theme default.xml file and add <referenceBlock name="wishlist_sidebar" remove="true" />
Go to theme,
app/design/frontend/{Vendor}/{theme}/Magento_Catalog/templates/product/view/addto.phtml
comment below code manually,
<div class="product-addto-links" data-role="add-to-links">
<?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()) : ?>
<a href="#"
class="action towishlist"
data-post='<?php /* @escapeNotVerified */ echo $_wishlistSubmitParams; ?>'
data-action="add-to-wishlist"><span><?php /* @escapeNotVerified */ echo __('Add to Wish List') ?></span></a>
<?php endif; ?>
<a href="#" data-post='<?php /* @escapeNotVerified */ echo $compareHelper->getPostDataParams($_product);?>'
data-role="add-to-links"
class="action tocompare"><span><?php /* @escapeNotVerified */ echo __('Add to Compare') ?></span></a>
</div>
Your error are gone now.