angular-summernote
angular-summernote copied to clipboard
Missing "main" property in bower.json file to load the package #3451
I use summernote in an Angular 1.7.4 project with angular-summernote package but the bower.json file of summernote missing the main property to load the package. This doesn't allow me to use summernote in my angular application.
Steps to reproduce
- Install angular-summernote latest version
- Install the last version of summernote 0.8.12
- Try to build the application
- See error in the the console
angular.js:15536 TypeError: element.summernote is not a function at Object.activate (angular-summernote.js:104) at angular-summernote.js:201 at Scope.$digest (angular.js:19103) at Scope.$apply (angular.js:19463) at done (angular.js:13312) at completeRequest (angular.js:13569) at XMLHttpRequest.requestLoaded (angular.js:13474)
I use gulp to build the application
Step to resolve the problem
- Open the bower.json file of summernote package
- Add this property
"main": ["./dist/summernote.js", "./dist/summernote.css"] - Save and rebuild the app