Unexpected unknown at-rule "@screen" at-rule-no-unknown
See original GitHub issue"nuxt": "^2.14.12",
"@nuxtjs/tailwindcss": "^3.4.2",
Node v14
Whenever i try to use any tailwind directive except @apply
it throws me an error: “Unexpected unknown at-rule “@screen” at-rule-no-unknown”, nor screen, nor layer works.
Example code:
<style lang="postcss" scoped>
.navbar {
@apply relative mx-auto px-4 flex items-center h-full;
@screen lg {
@apply py-6;
}
}
</style>
tailwind.config.js:
module.exports = {
theme: {
extend: {
colors: {
body: '#edf0f1',
},
},
},
}
@Atinux might be related to npm?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
Unexpected unknown at-rule "@screen" at-rule-no-unknown
Whenever i try to use any tailwind directive except @apply it throws me an error: "Unexpected unknown at-rule "@screen" at-rule-no-unknown", nor ...
Read more >css - Unexpected unknown at-rule "@tailwind" scss/at-rule-no ...
Does this help? rules: { 'at-rule-no-unknown': null, 'scss/at-rule-no-unknown': [ true, { 'ignoreAtRules': ['tailwind'] } ], }.
Read more >@tailwind unknown at rule | The AI Search Engine You Control
Whenever i try to use any tailwind directive except @apply it throws me an error: "Unexpected unknown at-rule "@screen" at-rule-no-unknown", nor screen, ...
Read more >SonarCloud: Fixing unexpected unknown at-rule @tailwind - Tim
In Sonar, go to the Quality Profiles section. The Quality Profiles screen lists out to collections of rules which are applied during analysis....
Read more >at-rule-no-unknown - Stylelint
at-rule-no-unknown ... Disallow unknown at-rules. ... This rule considers at-rules defined in the CSS Specifications, up to and including Editor's Drafts, to be ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is also not working on the latest version 4.0.1 with tailwind 2. I can only use @screen on root css (tailwind.css), if I try using it inside a component, it gives me this specific error.
As a workaround, it’s possible to bypass this error from stylelint
stylelint.config.js
, add the rule: