Skip to content

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

Description

@thekage91

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions