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

Metronic 8.2.1 Laravel-Errors


I´m using Metronic 8.2.1 Laravel and i have this errors:
Uncaught SyntaxError: Cannot use import statement outside a module (at plugins.bundle.js:41261:1)
scripts.bundle.js:8280 Uncaught ReferenceError: $ is not defined
at scripts.bundle.js:8280:1
(anónimo) @ scripts.bundle.js:8280
general.js:166 Uncaught ReferenceError: FormValidation is not defined
at handleFormAjax (general.js:166:9)
at Object.init (general.js:342:17)
at HTMLDocument.<anonymous> (general.js:352:21)

How can i solve this?


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


I apologize for the inconvenience. Here's a workaround to address the issue. The latest version of the Chart.js v4 plugin has changed the file name. To resolve this, follow these steps:

1. Edit the file located at `resources/mix/plugins.js`.

2. Find the line that references `node_modules/chart.js/dist/chart.js`.

3. Update it to `node_modules/chart.js/dist/chart.umd.js`.

We are working on including a fix for this. Thank you for your understanding, and if you have any more questions or encounter further issues, please don't hesitate to reach out.



Thank you for bringing the issue to our attention. We are actively investigating the errors in Metronic 8.2.1 for Laravel and to resolving the issue as quickly as possible. Your patience is appreciated.



I have the same error after a fresh install happy)


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