magento / pwa-studio

šŸ› Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 682 forks source link

[bug]: New theme creation - tailwind preset issues #4289

Open jemoon opened 1 week ago

jemoon commented 1 week ago

Describe the bug

After new theme creation (according to: https://developer.adobe.com/commerce/pwa-studio/guides/theming/#create-a-new-theme) there are multiple error notices shown in console during compilation f.eg /components/Header/currencySwitcher.module.css The '-sm' screen does not exist in your theme

To reproduce

Steps to reproduce the behavior:

  1. Create my-theme-preset.js with following content: module.exports = { theme: { extend: { fontFamily: { sans: ["Courier", "sans-serif"], }, }, }, };
  2. Import preset in tailwind.config.js by placing following line: const myThemePreset = require("./my-theme-preset");
  3. Change presets configuration so it will look like presets: [venia, myThemePreset]
  4. Run compilation

Expected behavior

Compilation process should be finished withour any errors.

Please complete the following device information:

Please let us know what packages this bug is in regards to:

m2-assistant[bot] commented 1 week ago

Hi @jemoon. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.