question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

summernote is not a function

See original GitHub issue

use 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
gonprazerescommented, May 10, 2017

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') }, }

0reactions
congloi2704commented, May 14, 2019

alias: { jquery: path.resolve(__dirname, ‘node_modules/jquery/dist/jquery.js’) }, i tried but it didn’t run 😦

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found