You've got 2 different ways to handle your external dependency: stick to SystemJS and use import for elasticsearch/elasticsearch - SystemJS loader can actually load modules in different formats singapore language percentage. compiler, core. Our website collects the most common questions and it give's answers for developers to those questions. AngularJS entry —the entry-point files that define the bundles. app.js file loads and define loads angular.js and creates our Angular app instance. Angular extends HTML with additional syntax that lets you insert dynamic values from your component. Error Webpack: Uncaught ReferenceError: require is not defined require is not defined in angular - SemicolonWorld So, we should use both define and require. require is not defined angularjs - avcoengineers.com For exmple bpmn-js ReferenceError: angular is not defined Angularjs - CMSDK Description. And, we use require to load dependency onto the page. Afterwards I created a service which should load an external pure JS library. And I prefer to use require() but it seems to break. Looking at your SystemJS example.