Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Metronic 8.0.36 & Laravel 9 - window.ignite is not a function


I'm developping a laravel project with the latest version of Metronic 8 theme (8.0.36)
For the upgrade to work properly I had to reverse the webpack.mix.js to a previous syntax
From : mix.scripts(...) to mix.js(...)
the .scripts generated many errors

But with that, I now have a "window.ignite is not a function" error on the console and a blank page whenever a laravel ignition error page must show.

Is it related to the change I had to make in the mix.js file or is this a problem with my ignition package dependency ?

Thanks a lot for your help


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)


Hi,

Could you please give the link to the ignition library Github? Please check if the library has a JS file from the dist folder.

Thanks



Hi !

The library is this one https://github.com/spatie/laravel-ignition
Which uses this other more generic Ignition library https://github.com/spatie/ignition where the js files are (resources/js).

But they are now the default laravel error page handlers, am I the only one with this error once I updated to laravel 9 ?

Thanks a lot for your help



Hi Pierre,

We just updated the Metronic version 8.0.37. Could you please try to update with the latest version? We did improvements with the Laravel 9 updates by removing absolute libraries and updating the dependencies library with Laravel 9 support.

Thanks



Hi Faizal !

Thanks for your help, the changes from 8.0.37 fixed the issue.

Unfortunately the plugin laravel-page-speed was not provided in the metronic package even though it was included in the composer.json so i had to remove it manually. Other than that works well, thanks again !



Hi Pierre,

laravel-page-speed does not support Laravel 9 yet. We had to remove it for now. Otherwise, the composer cannot be installed with Laravel 9. It is an optional library for performance. We can add it back after it supports Laravel 9.

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