Cant not found jQuery or jQuery.scss when build demo1 of Metronic7 with webpack

>> Failed to compile metronic bundle!

resolve 'jQuery' in '/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/summernote/dist'
Parsed request is a module
using description file: /home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/summernote/package.json (relative path: ./dist)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/summernote/dist/node_modules doesn't exist or is not a directory
/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/summernote/node_modules doesn't exist or is not a directory
/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules
single file module
using description file: /home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/package.json (relative path: ./node_modules/jQuery)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/jQuery doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/jQuery.js doesn't exist
.scss
Field 'browser' doesn't contain a valid alias configuration
/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/jQuery.scss doesn't exist
/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/jQuery doesn't exist
/home/xxx/Downloads/Metronic-7.2.9/theme/html/node_modules doesn't exist or is not a directory
/home/xxx/Downloads/Metronic-7.2.9/theme/node_modules doesn't exist or is not a directory
/home/xxx/Downloads/Metronic-7.2.9/node_modules doesn't exist or is not a directory
/home/xxx/Downloads/node_modules doesn't exist or is not a directory
/home/xxx/Downloads/node_modules doesn't exist or is not a directory
/home/xxx/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
ERROR in ./node_modules/summernote/dist/summernote.js 15:27-44
Module not found: Error: Can't resolve 'jQuery' in '/home/xxx/Downloads/Metronic-7.2.9/theme/html/tools/node_modules/summernote/dist'

webpack compiled with 1 error
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! metronic@7.2.9 build: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the metronic@7.2.9 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/xxx/.npm/_logs/2023-05-25T08_48_47_334Z-debug.log
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)

Hi,

The webpack build is functioning correctly from our end.

To further investigate the issue you're facing, could you please provide your package.json file? This file contains the configuration and dependencies for your project, which will help us better understand the setup and potentially identify any issues.

Thanks
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

React Dev Vacancy

KeenThemes is looking for a Junior React or Vue developer to build awesome apps.
Apply
keenthemes mega bundle