This should be straight forward, but I'm stuck.
I'm trying to include mobile-angular-ui in an angular-fullstack-generator project but I keep getting
Uncaught SyntaxError: Unexpected token < mobile-angular-ui.min.js:1
I'm adding the following at the end of the body of the _index.html, and the network tab is returning the proper 200 response.
<script src="/node_modules/mobile-angular-ui/dist/js/mobile-angular-ui.min.js"></script>
If I use import in app.js like this
import mobileUi from '../../node_modules/mobile-angular-ui/dist/js/mobile-angular-ui.js';
Then I get the following error
Uncaught TypeError: Cannot read property 'documentElement' of undefined mobile-angular-ui.js:2584
Where am I going wrong, where am I supposed to include this?
Thanks!