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

laravel error 9.2.0


I tried both laravel docs as well github updated repo but both are failed

github repo just used pre compiled bundles but when i switch to vite version getting broken layout and js error.

the problem inside the src. kindly fix it as soon as possible.


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


Hi


/* Tailwind core */
@import "tailwindcss";

/* Tailwind scan sources */
@source "../../../node_modules/@keenthemes/ktui/src/";

/* Theme configs */
@import "./config.ktui";

/* KTUI styles */
@import "../../../node_modules/@keenthemes/ktui/styles.css";

/* Metronic components */
@import "./components/index";

/* Demos */
@import "./demos/demo1.css";


Please try this

Thanks



Hi Faisal,

Please run the following command to upgrade to the latest version of @keenthemes/ktui:


npm upgrade @keenthemes/ktui


This should resolve the issues you're facing. Let me know if you encounter any further problems!

Thanks



Hi, now no js error but getting unstyled layout, I updated styles.css file from metronic/css/styles.css


/* Tailwind core */
@import "tailwindcss";

/* Tailwind scan sources */
@source "../../dist/assets/vendors/ktui/";

/* Theme configs */
@import "./config.ktui";

/* KTUI styles */
@source "../../../node_modules/@keenthemes/ktui/src/";

/* Metronic components */
@import "./components/index";

/* Demos */
@import "./demos/demo1.css";



Hi,

We have pushed a Vite fix for KtUI. Can you please try the latest '@keenthemes/ktui' package ?

More info:


Regards,
Sean



Its not working getting another error

Error: Failed to scan for dependencies from entries:
F:/Web/metronic/resources/js/app.js

X [ERROR] Missing "./src/index" specifier in "@keenthemes/ktui" package [plugin vite:dep-scan]

Please make a fix and update the laravel integration docs. make sure you are not including pre build files in html file. it should use vite build.



css error as well


[plugin:@tailwindcss/vite:generate:serve] Can't resolve '../../node_modules/@keenthemes/ktui/styles.css' in 'F:\Web\metronic\resources\metronic\css'



hello! i have the same error 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  :(
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  :(