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

Promise Javascript problem.


I bought the Good - Bootstrap Themes template in https://themes.getbootstrap.com/product/good-bootstrap-5-admin-dashboard-template/. I'm debug code ASP.NET, then thow Exception on file plugins.bundle.js. in line 24990: 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. Please help me fix this bug.


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)


Hi,

I want to apologize for the late reply.

We rechecked the latest Good and were not able to reproduce this error.

Could you please specify whether are you using our Starterkit or if it is your own Asp.Net-Core implementation?

Are the any steps on how we can get the same result?

Regards,
Lauris Stepanovs,
Keenthemes Support Team



I debug in visual studio 2022 version enterprise (running as Administrator) and website debug running on google chrome Version 130.0.6723.117 (Official Build) (64-bit) for windows 11. I'm running code ASP.NET Starterkit version good_asp.net-core_v1.1.4.
link screenshot: https://imgur.com/a/8hJSsbQ
link drive video debug: https://drive.google.com/file/d/1kv9Qdp7QcZgDSO-E1NNGhm1Eq6UY-BtA/view?usp=drive_web
Please help me fix this problem.
Thank you.
Regards.



adding a Promise polyfill (such as core-js or es6-promise) to make sure Promise behaves as expected. To add the polyfill, include this at the top of your JavaScript file:

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

This ensures backward compatibility for environments where Promise may be causing issues.
get more infor here:https://themes.getbootstrap.com/product/good-bootstrap-5-admin-dashboard-template/hills of steel


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