I am using 'requirejs' for my app development, it was worked properly but certainly it is not working now. all the path are correct. but i am getting error on load the page
error i am getting:
Remote Address:127.0.0.1:3000
Request URL:http://localhost:3000/js/lib/require.js //but exactly the file is here.
Request Method:GET
Status Code:404 Not Found
here is my html for jade:
doctype html
html(lang='en')
head
title= name
link(rel='stylesheet', href='styles/bootstrap.min.css')
link(rel='stylesheet', href='styles/stylesheet/style.css')
body
<h1>I am basic testing</h1>
script(data-main="js/main", src="js/lib/require.js")
here is my main.js
requirejs.config({
baseUrl:'js/',
paths:{
"jQuery":'lib/jquery',
"underscore":"lib/underscore",
"backbone":"lib/backbone",
"marionette":"lib/Marionette"
},
"shim":{
"jQuery":{
exports:"$"
},
"underscore":{
exports:"_"
},
"backbone":{
exports:"Backbone",
deps:["underscore"]
},
"marionette":{
exports:"Marionette",
deps:["backbone"]
}
}
});
requirejs(['app'], function(app){});
Any one help me to fix this issue?
screen shot from browser: