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.07k stars 683 forks source link

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

Open jemoon opened 4 months ago

jemoon commented 4 months 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 4 months 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.

glo82145 commented 2 months ago

@adobe export issue to JIRA project PWA as Bug

github-jira-sync-bot commented 2 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3364 is successfully created for this GitHub issue.