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

Promise Javascript problem.


I bought the Good - Bootstrap Themes template in 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
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 (5)


@flappy dunk I can get much info here



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:
Please help me fix this problem.
Thank you.
Regards.



Hi,

Have you tried running the application using dotnet CLI command?

Open your project folder in your terminal and execute dotnet watch.

You can follow the steps in our getting started doc: https://preview.keenthemes.com/blazor/metronic/docs/getting-started

Regards,
Lauris Stepanovs,
Keenthemes Support Team



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: of steel


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