question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: not showing any css effect on Vite created Vue3

See original GitHub issue

What package within Headless UI are you using?

@headlessui/vue

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
minarccommented, Nov 1, 2022

@bitweedx64 I’m having same problem with Vite. Can you tell me what I need to setup more?

0reactions
bitweedx64commented, Jun 15, 2022

@bitweedx64 what was the problem? I assume you figured it out since you closed this issue

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found