Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Styles are always delayed loading #19

Open
5 tasks done
lvzhenbo opened this issue Oct 7, 2023 · 9 comments
Open
5 tasks done

Styles are always delayed loading #19

lvzhenbo opened this issue Oct 7, 2023 · 9 comments

Comments

@lvzhenbo
Copy link

lvzhenbo commented Oct 7, 2023

Describe the bug

I've tried all sorts of things, and the weird thing is that the css styles always load slower than the html, causing the html to appear first and then the styles to change

Reproduction

https://github.com/lvzhenbo/nuxt-app

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 5.74 GB / 15.90 GB
  Binaries:
    Node: 18.18.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.8.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (117.0.2045.60)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

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.
@mttzzz
Copy link

mttzzz commented Oct 7, 2023

I also encountered this behavior. I hope together we can find a solution. i tried node 18.17, 18.18, 20.07. pnpm and yarn

@mttzzz
Copy link

mttzzz commented Oct 7, 2023

https://github.com/becem-gharbi/nuxt-naiveui . i try this package and there no problem

@lvzhenbo
Copy link
Author

lvzhenbo commented Oct 7, 2023

becem-gharbi/nuxt-naiveui . i try this package and there no problem

Thanks a lot, that worked for me, probably looked at the code and it seems to be a difference in the plugin that handles the css

@productdevbook
Copy link
Member

very interesting why they created the same one when there is a library here

@lvzhenbo
Copy link
Author

lvzhenbo commented Oct 7, 2023

very interesting why they created the same one when there is a library here

His goal seems to be not just the nuxt module for naive-ui, but also some tailwind integration, custom components, and more

@productdevbook
Copy link
Member

https://github.com/becem-gharbi/nuxt-naiveui/issues/29

I've issued an issua for cooperation. I wish he'd contacted me at the beginning.

@becem-gharbi
Copy link

I've issued an issua for cooperation. I wish he'd contacted me at the beginning.

Apparenly there is a misunderstanding here. All the credits goes to naive-ui community for creating the library and the SSR setup for Nuxt 3 support (docs). I started from there with the goal to create a UI layer for Nuxt 3. And I stated at introduction that is not an official module.

@productdevbook
Copy link
Member

@becem-gharbi It doesn't matter, thanks for your work, I like it. We should make a decision for the ecosystem and publish the library somewhere.

Health to your hands ❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants