angular-summernote icon indicating copy to clipboard operation
angular-summernote copied to clipboard

Missing "main" property in bower.json file to load the package #3451

Open thekage91 opened this issue 6 years ago • 0 comments

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

  1. Install angular-summernote latest version
  2. Install the last version of summernote 0.8.12
  3. Try to build the application
  4. 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

  1. Open the bower.json file of summernote package
  2. Add this property "main": ["./dist/summernote.js", "./dist/summernote.css"]
  3. Save and rebuild the app

thekage91 avatar Oct 29 '19 10:10 thekage91