Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(