-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron App: Uncaught Error: Cannot find module 'angular' #70
Comments
Hi @isvaljek , I'm not familiar with Electron. You'll have to somehow tell the bundler that your e.g. browserify-shim for browserify |
Thanks Chih-Hsuan, but I don't know that if Electron even has a module 2016-07-05 16:17 GMT+02:00 Chih-Hsuan Fan [email protected]:
|
It seems that the I guess if you simply install After install <script src="path_to_node_module/angular/angular.min.js"></script>
<script src="other angular modules"></script> or <script>
window.angular = require('angular');
</script>
<script src="other angular modules"></script> |
I'm having trouble loading this script in an Electron app. Angular app is working fine with the basic highlight.min.js script, but when I add your script after the angular.js script I get this:
The text was updated successfully, but these errors were encountered: