How to fix the «Invalid template file» / «require_js.phtml» failure of Magento 2.3.0 in Windows?

bug
filesystem
windows
bug-fix
magento23
magento230

(Dmitry Fedyuk) #1

Replace the line:

with the following one:

if (0 === strpos($realPath, $this->fileDriver->getRealPath($directory))) {

How to fix the «Invalid template file» / «require_js.phtml» failure of Magento 2.2.7 in Windows?
(Dmitry Fedyuk) #2

See also: How to fix the «Invalid template file» / «require_js.phtml» failure of Magento 2.2.7 in Windows?