New Metronic Docs!Added Integration Docs with Starter Kits Apps for Laravel, Laravel Livewire, Angular, Vue, Symfony, Blazor Server, Django & Flask & more
Browse Docs

Metronic 9.2.0


Hi, I am new to front end development.

Now i am using symfony framework.

i had purchase the composer package over here :
https://keenthemes.com/metronic/tailwind/docs/composer

and also metronic theme at themeforest.

now i wanted to use demo2 as my template. i follow exactly above document. After generate asset file, i copy all the assets file into my project directory "my_project/assets"

i try to run php bin/console asset-map:compile, here come the error.

Unable to find asset "images/layers.png" referenced in "Desktop/tailwind/myproject/assets/vendors/leaflet/leaflet.bundle.css". The file "Desktop/tailwind/myproject/assets/vendors/leaflet/images/layers.png" does not exist.

i try to search for the image at metronic-tailwind-html-9.2.0/dist/assets/vendors/leaflet/images/layers.png, i cant find the file

anyone can teach me how to solve this issue?

beside that, do i need to copy over package.lock.json, postcss.config.js, prettier.config.js, webpack.vendors,js from metronic-tailwind-html-9.2.0 to my myproject and run npm install to install all the dependency?


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)


Hey there — nice post and welcome to front-end dev! 🎉

I recently worked with Metronic myself (v9.2.0) on a Symfony project and hit a similar issue with assets: the CSS of one vendor referencing an image that didn’t exist in the expected path. In my case the fix was two-fold:

Check the vendor asset paths — open vendors/leaflet/leaflet.bundle.css (or whichever CSS is complaining) and search for the url(...) that’s giving the error (in your case images/layers.png). Confirm whether that path exists under assets/vendors/leaflet/images/layers.png.

If the file is missing, you have a couple of options:

Copy the missing file from the original theme distribution (if you still have it) into the correct path.

Or adjust the CSS to point to a location where the image does exist (or where you’ve placed it). For example update url("images/layers.png") → url("../some-other-path/layers.png").

As for your other question — yes, I’d recommend copying over package-lock.json, postcss.config.js, prettier.config.js, webpack.vendors.js (and any other config files from the original theme) into your my_project directory, run npm install, then build the assets via Webpack or whatever builder Metronic uses. That ensures all dependencies and build steps align properly with the theme’s expectations.

One extra tip: clear Symfony’s asset cache with php bin/console cache:clear --env=prod (or whatever environment) after the assets compile, and make sure asset-map:compile is pointed to the directory where the built assets live (in your case my_project/assets).

Hope that helps you unblock it — feel free to drop the exact error or path if you’re still stuck and we’ll dig deeper. Good luck!

P.S. If you’re looking for extra examples or reference themes that integrate Metronic + Symfony, check out this site:
— might not be exactly Metronic specific, but the asset / build patterns there helped me clarify a few things.



Hi

In /metronic-tailwind-html/webpack.vendors.js. It seems missing leaflet images.


leaflet: [
{
src: ["node_modules/leaflet/dist/leaflet.css"],
dist: "/vendors/leaflet/leaflet.bundle.css",
bundle: true,
},
{
src: [
"node_modules/leaflet/dist/leaflet.js",
"node_modules/esri-leaflet/dist/esri-leaflet.js",
"node_modules/esri-leaflet-geocoder/dist/esri-leaflet-geocoder.js",
],
dist: "/vendors/leaflet/leaflet.bundle.js",
bundle: true,
},
{
src: ["node_modules/leaflet/dist/images"],
dist: "/vendors/leaflet/images",
},
],


As workaround, could you please copy images from node_modules/leaflet/dist/images to your path? Desktop/tailwind/myproject/assets/vendors/leaflet/images

Thanks



thank for your help.

now i facing new problem. when i refresh the page, datatable search input will become undefined. this problem also happen when i click the thead for sorting



Thanks for reporting the issue.

The problem is coming from the KtUI component library side, we’ve identified the cause and will fix the bug in an upcoming update.

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