0

ERROR: Invalid template file: 'C:/xampp/htdocs/Project/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' In module: '' block's name: 'require.js'

New contributor
Bangaram sandhya is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

Need to modify in core file.

Path : vendor\magento\framework\View\Element\Template\Validator.php

Method : isPathInDirectories (line no: 138)

Change : $realPath = $this->fileDriver->getRealPath($path); to $realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

Cause : Windows separator("\") and magento directories entries("/") are differ.

New contributor
Bangaram sandhya is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Bangaram sandhya is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.