summernote: Module not found: Error: [CaseSensitivePathsPlugin], jQuery

steps:

  1. I faced this problem. Module not found: Error: [CaseSensitivePathsPlugin] C:\Users\[UserName]\[Something_Dir]\[MyProject]\node_modules\jQuery\dist\jquery.js does not match the corresponding path on disk jquery.

  2. I think its trouble mean -> ‘jquery’ required ‘jQuery’

/dist/summernote-lite.js (line:15)

follow the code.

module.exports = factory(require("jQuery"));

I think its right.

module.exports = factory(require("jquery"));

‘Q’ -> ‘q’

can you check it, please? Thank!

Settings

  1. Operating System: Windows 10 and Ubuntu 16.04 LTS

  2. Browser and Version: Chrome

  3. Summernote Version: v0.8.14 (lite)

  4. Package manager: yarn

and… I use these dependencies.

  • Vue CLI 3
  • jquery^3.4.1
  1. Please feel free to email me. (essess1541@gmail.com).

screenshot of issue

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 17
  • Comments: 31 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Regressed Issue Popped up again in recent release.

 ERROR  Failed to compile with 1 errors

This dependency was not found:

* jQuery in ./node_modules/summernote/dist/summernote.js

To install it, you can run: npm install --save jQuery

ERROR in ./node_modules/summernote/dist/summernote.js
Module not found: Error: Can't resolve 'jQuery' in '/home/dev/app/node_modules/summernote/dist'
 @ ./node_modules/summernote/dist/summernote.js 15:27-44
 @ ./resources/js/critical.js

Rollback to v0.8.16 fixes issue.

Error Code. in node_modules\summernote\dist\summernote-lite.js)

image

I changed it. ‘jquery’. image

It works…!!

check it, please…! Thank you.

woong i had a same issue

OK, I will find it out why.

Fixed in v0.8.15.

same issue

getting same issue since yesterday

There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* node_modules\jQuery\dist\jquery.js
    Used by 1 module(s), i. e.
    node_modules\summernote\dist\summernote-lite.js
Module not found: Error: Can't resolve 'jQuery' in '/node_modules/summernote/dist'

0.8.20 - failure. 0.8.18 - works so far

I still have this warnings (after HOTFIX from today 02 Jan 2020) and

` /node_modules/jQuery/dist/jquery.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* \node_modules\jQuery\dist\jquery.js
    Used by 1 module(s), i. e.
    \node_modules\summernote\dist\summernote-lite.js `

Also my editor not working anymore - it throws this error - I suppose both jquery libraries are conflicted somehow: jquery__WEBPACK_IMPORTED_MODULE_1___default(...)(...).summernote is not a function

Everything starts to work great (no warnings, no errors) when I change every jQuery to jquery in this part:

(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory(require("jQuery"));
	else if(typeof define === 'function' && define.amd)
		define(["jQuery"], factory);
	else {
		var a = typeof exports === 'object' ? factory(require("jQuery")) : factory(root["jQuery"]);
		for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
	}

Still I am using npm and node libraries so I can’t just change what I like there. Any ideas how to fix that?

I’ve built latest release and got exactly same issue. Downgraded back to 0.8.12 and started to work again

webpack@4.41.5, webpack-dev-server@3.10.1

yeah same issue

Im also getting jquery jQuery casing sense errors with 0.8.19 and 0.8.20 have kind back to 0.8.18 and its not complaining any more

There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /Users/matt/Dropbox/HackspaceInstrumentation/github/hms2/node_modules/jQuery/dist/jquery.js
    Used by 2 module(s), i. e.
    /Users/matt/Dropbox/HackspaceInstrumentation/github/hms2/node_modules/summernote/dist/summernote-bs4.js
* /Users/matt/Dropbox/HackspaceInstrumentation/github/hms2/node_modules/jquery/dist/jquery.js
    Used by 8 module(s), i. e.

Looking at the comments above, The error is clear. How long will it take?? I want to use continue SUMMERNOTE in our service.

It is strange, hopefully someone with more experience with how you are integrating Summernote may be able to help. @lqez @hackerwins @easylogic

I just built the latest release, no errors, checked that it works in a browser, no errors. However, I’m not loading dependencies like you are, but rather the traditional way in html not by requiring them. Can you please make sure it’s actually something to do with Summernote and not something external, thanks.