I have added a custom js file in my child theme and added the link in the default_head_blocks.xml. I am getting errors.
<link src="js/custom.js"/>
<!-- Add external resources -->
<link rel="stylesheet" type="text/css" src="http://fonts.googleapis.com/css?family=Montserrat" src_type="url" />
Is it necessary to specify the custom js in requirejs-config.js ?
<script src="js/custom.js" />after clear cache and runphp bin/magento setup:static-content:deploy -f