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

Metronic Tailwind CSS [Cannot read properties of undefined (reading 'light')]


Following the instructions here

https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/laravel

I'm trying to integrate it with flowbite , my frontend public facing is flowbite , using metronic for dashboard



vite v5.4.8 building for production...
✓ 1 modules transformed.
x Build failed in 1.64s
error during build:
[vite:css] [postcss] Cannot read properties of undefined (reading 'light')
file: /var/www/example.com/resources/css/app.css:undefined:NaN
at getComponentBackgroundColors (/var/www/example.com/resources/metronic/core/plugins/components/theme.js:73:63)
at /var/www/example.com/resources/metronic/core/plugins/components/theme.js:132:7
at registerPlugins (/var/www/example.com/node_modules/.pnpm/tailwindcss@3.4.13/node_modules/tailwindcss/lib/lib/setupContextUtils.js:815:61)
at createContext (/var/www/example.com/node_modules/.pnpm/tailwindcss@3.4.13/node_modules/tailwindcss/lib/lib/setupContextUtils.js:1221:5)
at getContext (/var/www/example.com/node_modules/.pnpm/tailwindcss@3.4.13/node_modules/tailwindcss/lib/lib/setupContextUtils.js:1278:19)
at /var/www/example.com/node_modules/.pnpm/tailwindcss@3.4.13/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:118:81
at /var/www/example.com/node_modules/.pnpm/tailwindcss@3.4.13/node_modules/tailwindcss/lib/processTailwindFeatures.js:46:11
at plugins (/var/www/example.com/node_modules/.pnpm/tailwindcss@3.4.13/node_modules/tailwindcss/lib/plugin.js:38:69)
at LazyResult.runOnRoot (/var/www/example.com/node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/lazy-result.js:329:16)
at LazyResult.runAsync (/var/www/example.com/node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/lazy-result.js:258:26)
 ELIFECYCLE  Command failed with exit code 1.


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


I think this issue can hinder development, just like the unexpected challenges in basket random can disrupt gameplay. Users have found that adjusting Tailwind settings often solves this issue as players have to adjust their strategies in-game to succeed.



Resolved , caused by tailwind config



Hi,

Glad to hear that. All the best with your projects happy

Regards,
Sean


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