Encountering an issue while setting up a page using npm and grunt.
Request URL:http://localhost:9997/bower_components/requirejs/require.js
Request Method:GET
Status Code:404 Not Found
The problematic html code is as follows:
<script>
var require = {
baseUrl: '/',
paths: {
'underscore': '/bower_components/underscore/underscore',
'backbone': '/bower_components/backbone/backbone',
'jquery': '/bower_components/jquery/dist/jquery',
'react': '/bower_components/react/react',
'mustache': '/bower_components/mustache/mustache',
'mySite-assets': '.'
}
};
</script>
//It's this particular line causing the trouble:
<script src="/bower_components/requirejs/require.js"></script>
Any modifications made to the html files are undone once grunt is run. This problem persists across all html files in my extensive project. Identifying which config file needs changing to resolve this issue has proven challenging.