Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

How to stop Metronics from loading node_modules during in runtime in browser?


I'm using html version of Metronics(version-7). Some of assets are loaded dynamically during run time in browser (ex: node_modules).

I need to update specific version of a plugin due to vulnerabilities, but even if I update the plugin version in pulgin.bundle.js, while runtime it is picking up the old version from node_modules.

Need some guide on how to update my specific plugin version or to stop loading that specific plugin from Metronics and load it manually through my application.

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  :(

Replies (3)


Which application are you using? Is it Webpack in the HTML version of Metronic?

Could you please specify the plugin you want to update? You can manage its version from the package.json file located in the 'tools' folder.

Additionally, we would like to identify the particular plugin that is being loaded from the 'node_modules' directory during runtime.



Hi Faizal,

I am using it in .Net Application and yes it's webpack HTML version of Metronics.

I need to update Moment and Handlebars which are being loaded through the bundle. I tried to update it but there are few challenges using gulp or webpack way to update the plugins as I am using 64bit OS and facing compatibility issue.

Regarding identification of plugin - could you please give me more information and if possible ways to identify.


Thanks



You can try to use the "npm update" command to update these plugins.

https://docs.npmjs.com/updating-packages-downloaded-from-the-registry

If you encounter any specific issues during the update process, please feel free to share the details with me.


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  :(