Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Metronic theme library Throws an exception


I am using Metronic theme library, version 8.2.8, and when I startup my page, it throws an exception saying "TypeError: Promise constructor cannot be invoked without 'new'". This plugin was working fine for the past year, up until I installed the .Net8 SDK, then received some error (forgot what it was), but it asked that to resolve it that I should upgrade the Visual Studio 2022 to latest. I then did then when I started debugging my application, this is when this error started appearing. My other developers are unable to duplicate this exception error.

Can you please take a look and let me know if this can be fixed regardless of anyone else being able to replicate.

Here are some Images of issue:
https://imgur.com/a/Uuxpu2f
https://imgur.com/a/SZT65ft
https://imgur.com/a/jWtkKDn

.Net SDK installed:
https://imgur.com/a/jWtkKDn


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 (9)


New web site is looking good. Thanks for the great effort
best home remedy for fleas on dogs



Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles
https://youtu.be/ipnK0fm3lRk



Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles
best home remedy for fleas on dogs



Hello,
There was already a 'wwwroot' directory and just copied the plugins.bundle.js, and all other folders. So should I still build via command given?



Hi David,

Yes, building the assets is mandatory. Besides plugins.bundle.js, the script will generate all other required bundle files and place them in the correct folders.

To build the assets, you can follow the instructions in our documentation: Build Assets Guide

Regards,
Lauris Stepanovs,
Keenthemes Support Team



I also noticed that this person also has the same Exception error:

https://devs.keenthemes.com/question/javascript-error-in-pluginsbundlejs-1



Ok I looked at the console output and I do see an error. It says:

"Could not read source map for https://localhost:44349/assets/plugins/global/plugins.bundle.js: Unexpected 404 response from https://localhost:44349/assets/plugins/global/chart.umd.js.map: "

I searched for this file in the downloaded Metronic library, and this file is NOT present.

Also, how can I build/deploy this libary with ONLY the features Iwant and NOT the entire library code set?



Hi,

Did you build Metronic assets?

To build the assets, navigate to the _keenthemes/tools folder and run the command: gulp --demo1. Make sure this command outputs the assets folder into the wwwroot directory.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi,

Thank you for reaching out to our support team.

Our ASP.NET Core experts are currently reviewing your issue and will provide you with a resolution shortly.

Best regards,
Sean


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