Some styles are missing after css is compiled, and it is normal for development.
See original GitHub issueEnvironment
- Operating System:
Windows_NT
- Node Version:
v16.13.0
- Nuxt Version:
3.0.0-rc.8
- Package Manager:
npm@8.1.0
- Builder:
vite
- User Config:
modules
,experimental
,unocss
,colorMode
,hooks
- Runtime Modules:
@vueuse/nuxt@9.1.0
,@unocss/nuxt@0.45.7
,@pinia/nuxt@0.4.0
,@nuxtjs/color-mode@3.1.4
- Build Modules:
-
Reproduction
https://github.com/amihhs/github-xtzryz
- pnpm i
- pnpm build
- pnpm start
file: /layouts/default.vue
Describe the bug
I use unocss
.default-header{
@apply fixed w-full top-0 z-999 shadow-lg backdrop-blur-md;
@apply bg-white bg-opacity-60 dark:bg-dark-800;
@apply h-15 sm:h-20;
}
It has some less styles at compile time.
-
Normal(dev)
-
Error(build)
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
CSS changes are not getting reflected. Why? - Stack Overflow
This means that your CSS rule is not applied or that your CSS file is cached. The possible causes are: a CSS rule...
Read more >Solving the React Error: Not Picking Up CSS Style | Pluralsight
In this guide, you will learn about the errors that can occur while importing a CSS file into your React file.
Read more >Debugging CSS - Learn web development | MDN
Select an element on your page, either by right/ctrl-clicking on it and selecting Inspect, or selecting it from the HTML tree on the...
Read more >How to Fix the Error: "The package could not be installed. The ...
A missing style.css file means one of two things: the theme developer (potentially you) failed to include it in the root directory, or...
Read more >Documentation | U.S. Web Design System (USWDS)
If you make customizations to the files in the package, any upgrade or ... Stylesheet: This is the compiled CSS stylesheet that describes...
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
In the course of testing, I found that if there is a normal css in class, it will work properly. example:
It should not have much to do with nuxt. It may be the problem with vite3. Before, vite2 was able to work normally.
You can use
tailwindcss
or a customcss
to see if it is related tonuxt
. I don’t think it is related tonuxt