General developer forum

AMD Module moment.js loaded via require.js produces mistmatch error

 
Picture of Henrik Thorn
Re: AMD Module moment.js loaded via require.js produces mistmatch error
 

You can avoid changing files by adding paths to your requirejs, which is added just above your "some_javascript_file" define statement. 


requirejs.config({
  paths: {
    "moment": "[theme_something]/moment"
  }
});

 
Average of ratings: -