Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动引入的组件,dev环境下有些样式没有被插入到html中 #794

Open
4 of 5 tasks
NotGeekAtAll opened this issue Aug 15, 2024 · 0 comments
Open
4 of 5 tasks

Comments

@NotGeekAtAll
Copy link

NotGeekAtAll commented Aug 15, 2024

Describe the bug

vite.config配置

import Components from 'unplugin-vue-components/vite';

export default defineConfig({
...
Components({}), // 自动引入根目录下components文件下的组件
...
})

我有一个RangeInput的组件,已经被引入了,如图

image

image

但是样式并没有被插入到html中,别的组件的样式都有被插入进去并生效

image

目录结构
image

Reproduction

none

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11500 @ 2.70GHz
    Memory: 11.85 GB / 31.73 GB
  Binaries:
    Node: 18.20.4 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.6.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant