Magento2: Invalid template file: 'Magento_Catalog::suncare/tabs.phtml' in module: '' block's name 'magento\framework\view\element\template_4' [] []
facing this error how to resolve this?
Thanks for helping
Yes, This is the problem with windows. Windows uses "" as separator, the array "directories" contains entries with "/" as separator, so the check will always fail. So you need to fix this by replacing the separator in core file:
Magento\Framework\View\Element\Template\File\Validator function isPathInDirectories replace below code in isPathInDirectories function
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));