summernote is not a function
See original GitHub issueuse webpack
index.js
require('jquery');
require('bootstrap');
require('summernote');
$('#summernote').summernote();
when i refresh index.html,error: Uncaught TypeError: e(...).summernote is not a function
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Uncaught TypeError: $(...).summernote is not a function · Issue ...
I managed to work by matching the versions of summernote and jquery module. I used 0.8.2 and 3.1.1 version respectively and it worked...
Read more >Error: summernote is not a function when using local files
When I used my local summernote files to load the text editor, ".summernote is not a function" happened. However, if I used the...
Read more >Uncaught TypeError: $(...).summernote is not a function
summernote is not a function error. This error occurs when you try to call the summernote method on an element without including script...
Read more >Summernote not working - Laracasts
after following the documentation of summernote how to implement it i am only seeing this instead of the editor Hello ... summernote is...
Read more >Deep dive - Summernote
Summernote allows to add Notifications with Contextual Colouring to indicate the type of Notifcation, or to use the area for Informational Purposes. The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same problem. It turned out my project was using a different jquery version from the one being required by summernote. Webpack bundles both versions and provides one to the summernote module and another to my code so my version of jquery is not extended with the summernote function.
To solve the problem you can revert your project to the same jquery version summernote uses or force your version of jquery on summernote. I chose the latter and managed to do it by registering a jquery alias on your webpack.config.js.
resolve: { alias: { jquery: path.resolve(__dirname, 'node_modules/jquery/dist/jquery.js') }, }