Skip to content Skip to sidebar Skip to footer

Requirejs Search For App.app Instead Of App.js (where App.js Is Entry Point Specified In Data-main)

Problem: I have a trivial demo application which use requireJS. When require.min.js script loads, it tries to load entry-point script. But, the Problem is that instead of localhos

Solution 1:

There is a problem with your version of require.js included in the app. Use the CDN one and it works.

The version you have in your code does not match the actual .min version on the CDN which means it was modified and includes .app

<scriptsrc="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.15/require.js"data-main="js/app"></script>

Post a Comment for "Requirejs Search For App.app Instead Of App.js (where App.js Is Entry Point Specified In Data-main)"