Skip to content
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

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

Open
thekage91 opened this issue Oct 29, 2019 · 0 comments
Open

Comments

@thekage91
Copy link

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 thekage91 changed the title Missing main property in bower.json file to load the package #3451 Missing "main" property in bower.json file to load the package #3451 Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant