[Bug]: not showing any css effect on Vite created Vue3
See original GitHub issueWhat package within Headless UI are you using?
What version of that package are you using?
v1.4.1
What browser are you using?
Chrome
Reproduction repository
create a vue-ts project with latest version of vite, and use @headlessui/vue Dialog component
Describe your issue
The component itself works. But not as expect. It’s like there’s no layout at all, pure text lay below the content on the upper code.
Here’s my dependencies:
"dependencies": {
"@headlessui/vue": "^1.4.1",
"@heroicons/vue": "^1.0.5",
"@metamask/detect-provider": "^1.2.0",
"@vue/cli": "^4.5.14",
"autoprefixer": "^10.3.7",
"ethers": "^5.5.1",
"global": "^4.4.0",
"markdown-it": "^12.2.0",
"postcss": "^8.3.11",
"secure-ls": "^1.2.6",
"tailwindcss": "^2.2.17",
"vite-svg-loader": "^2.2.0",
"vue": "^3.2.16",
"vue-i18n": "^9.2.0-beta.15",
"vue-router": "^4.0.12",
"vuex": "^4.0.2",
"vuex-persistedstate": "^4.1.0"
},
"devDependencies": {
"@types/markdown-it": "^12.2.3",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@vitejs/plugin-vue": "^1.9.3",
"eslint": "^8.1.0",
"eslint-plugin-vue": "^7.20.0",
"rollup-plugin-visualizer": "^5.5.2",
"typescript": "^4.4.3",
"vite": "^2.6.4",
"vue-tsc": "^0.3.0"
},
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Vue 3 - Vite app missing some CSS rules after build
The reason behind lost CSS is purgecss library. When building for production, it removes CSS rules that are not being ...
Read more >Features | Vite
Any CSS file ending with .module.css is considered a CSS modules file. ... There is no need to install Vite-specific plugins for them,...
Read more >Composition API: Lifecycle Hooks - Vue.js
When this hook is called, the component has finished setting up its reactive state, but no DOM nodes have been created yet. It...
Read more >Vite - Tauri Apps
Build a Tauri app using Vite as the frontend build tool. ... to the name of the folder this utility will create but...
Read more >CSS Animations Not Working? Try These Fixes - HubSpot Blog
Learn how to fix common CSS animation error and get your ... Whether your animation isn't working as intended, or just isn't working...
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 Free
Top 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
@bitweedx64 I’m having same problem with Vite. Can you tell me what I need to setup more?
It’s just me being dumb. I thought headless UI is packed with default styles just like other UI Frameworks, but the short example in the documentation is only the minimal setup. Which means it is behaving as expected. Sorry for the worthless issue.