requirejs - Require.js: "file not loading" in AMD process -


i use require.js "amn" load files, html file.

<script data-main="js/main.js" href="js/require.js"></script> 

when load main.js - made config load jquery file.

require.config({     baseurl: 'js',     paths: {         "jquery":'lib/jquery-1.9.1.min'     } });  require(['jquery'], function ($) {     console.log($); }) 

but not getting console. paths correct.my js folder's structure

my index.html file located @ parent of js filder.

help me resolve this.

jquery module amd should lowercase. check path used when browser requesting files using developer tools in chrome or fiddler. way know if configured right.

update: please correct syntax loading script. must src instead of href.

<script data-main="js/main.js" src="js/require.js"></script> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -