Laravel Vue Compilation Issues

Longtime metronic owner here, god I just love this theme.


I have been trying to install the Vue version into laravel, following the documentation, but I am encountering several issues.

Docs: https://preview.keenthemes.com/metronic8/vue/docs/#/vue-laravel-integration

1.) The build is EXTREMELY SLOW - Like for the stock, nothing custom it is taking 15+ Minutes, sometimes longer before #2 below happens... I am not on a resource-limited machine and this issue is only when I try to compile metronic.

- I've removed and reinstalled the node_modules many times
- I even tried on a fresh laravel project, Could not get it to compile either and was very slow

2.) Then even worse than waiting for it to compile, it errors. But I don't understand the error because I followed the documentation. I must admit when it comes to frontend technologies I am not as knowledgeable as I am with the backend so I don't even really know how to go about debugging this.

If anyone has any knowledge of how to fix this, would be appreciated.

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

Compiled with some errors in 28.61m

Hi,

Yes there is a problem, mix task bundles all the Vue files and it takes a while, we will check this problem and fix it in upcoming releases.

For now, you can consider using a different approach from the tutorial below.

https://vegibit.com/how-to-use-vuejs-with-laravel-blade/

You can also try to keep a Vue as a separate instance and then write API using Laravel.
Check the tutorial below.

https://laraveldaily.com/laravel-8-vue-3-crud-composition-api/

Regards,
Lauris Stepanovs,
Keenthemes Support Team

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