Login page fail in metronic 8.1.7 (laravel) installation

When I try to login with user demo nothing happens and the console is full of error messages:
"Uncaught ReferenceError: KTUtil is not defined"

How can I solve this problem?

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

Replies (9)

Hi Sergi,

Have you tried to rebuild the assets?

npm install
npm run dev

Thanks

Yes, but same error! sad

Just before this errors other error message is show:
'Uncaught SyntaxError: Invalid or unexpected token' in scripts.bundle.js:53736

Seems like this javascript is not well generated... with binary code?!?!
// On document ready
KTUtil.onDOMContentLoaded(function () {
KTTimelineWidget4.init();
});

�PNG



I'm working with:
npm 9.4.1
yarn 1.7.0
composer 2.5.1
php 8.1.10
mysql 5.7.19

Thanks!

This is not working. Please check

I am also getting same error

Just bought the theme, i have same issue. Looks like it is trying to obtain an instance of KTUtil from the resources/src/../ util.js, not the public directory. i dont know if this is the correct behaviour

Hi,

Thank you for the information. We are checking this at the moment and provide a fix shortly.

Regards.

Hi,

We have fixed the issue. Could you please retry to download it?

https://devs.keenthemes.com/metronic/laravel

Thanks

Great. Its working fine.

It works! 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  :(