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

TypeError: Promise constructor cannot be invoked without 'new'.


on my "boot" template that i bought from themes.bootstrap.com throwing an exception like below I'm using .net mvc version of that.

var promiseRequiresObjectContext = throwsError(function () { return globals.Promise.call(3, noop); }); Error: TypeError: Promise constructor cannot be invoked without 'new'. in line 25019: executor(3, function () {}); : TypeError: Promise executor has already been invoked with non-undefined arguments.

so i think it causes stops some of utility like create new project on clicking top of menu item, besides, focused and make activate menu item where the page is standing for

I did some research and followed the suggestions on your site but I couldn't find a solution. i have made these steps to solve that problem before but they didnt work anyway.

* import thesee parameters to my blugins.bundle.js file to handle version collusion issue

import 'core-js/stable';
import 'regenerator-runtime/runtime';

* update my npm packages using the tool that you gave me first.


please help me fix that, it costs much more time for me and i basicaly bought that template to save time.

thank you


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


Is there any progress here? In v. 8.2.9 is still the same problem. Is there any work on rewriting plugin.bundle.js to avoid 'promise' error?
Thank you in advance for your kind answer.



how they fix this? im encountering this in asp.net core



i am facing same error.. im using metronic v8.2.8



Hi,
I have same problem in plugins.bundle.js at line 24990 var promiseRequiresObjectContext = throwsError(function () { return globals.Promise.call(3, noop); }); .
Eeported error is: "TypeError: Promise constructor cannot be invoked without 'new'".
Error occurs in Metronic theme v. 8.23 as well as in v. 8.28. I use Visual Studio Pro 2022 v17.12.0, working on ASP.NET MVC application on .NET 4.5.2. Previously working application won't start anymore after few VS 2022 updates.
Please help.
Valentin



Hi,

I want to apologize for the late reply.

Could you please specify which Metronic version you are using?

Did you make any changes to the default package?

Regards,
Lauris Stepanovs,
Keenthemes Support Team


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