Metronic Mega Update!Tailwind 4, React 19, Next.js 15, KtUI, ReUI, eCommerce, User Management Apps and more
Explore Update

TypeError: Promise constructor cannot be invoked without 'new'


Hit the below error at plugins.bundle.js file under demo 13.
Previously the app was running well but get this error after upgrading VS (version 17.12.5).

the error is hit on metronic v8.2.3, i have also updated metronic to v8.2.9, still getting the same error.

pls advise how to proceed further.


Error Details:
TypeError: Promise constructor cannot be invoked without 'new'
Stack trace:
> at Number.Promise (<anonymous>)
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:24990:89
> at throwsError (http://localhost/xxx/assets/plugins/global/plugins.bundle.js:22384:7)
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:24990:40
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:22367:26
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:22369:2
TypeError: Promise executor has already been invoked with non-undefined arguments
Stack trace:
> at new BadResolverPromise (http://localhost/xxx/assets/plugins/global/plugins.bundle.js:25019:7)
> at BadResolverPromise.all (<anonymous>)
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:25027:35
> at valueOrFalseIfThrows (http://localhost/xxx/assets/plugins/global/plugins.bundle.js:22392:14)
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:25026:33
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:22367:26
> at http://localhost/xxx/assets/plugins/global/plugins.bundle.js:22369:2


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


Hi

Sorry for the delay. May I know if you just update the plugins.bundle.js file only? How about the src assets files?

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