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

hrm keeps firing on initial load after upgrade beyond ^0.31.3 (Vite+Vue2) #862

Closed
Codermar opened this issue Apr 23, 2022 · 2 comments · Fixed by #917
Closed

hrm keeps firing on initial load after upgrade beyond ^0.31.3 (Vite+Vue2) #862

Codermar opened this issue Apr 23, 2022 · 2 comments · Fixed by #917

Comments

@Codermar
Copy link

Codermar commented Apr 23, 2022

When I upgrade to 0.31.12, Vite takes a long time to load. (any version beyond 0.31.3 does the same)

I am using Vite 2.9.5 and Vue 2 in a setup very similar to Vite+Vue2 Starter Template No windicss but using

    "unocss": "^0.31.3",
    "unplugin-icons": "0.14.1",
    "unplugin-vue-components": "0.19.3",
    "unplugin-vue2-script-setup": "0.10.2",
    "vite": "2.9.5",
    "vite-plugin-components": "0.13.3",
    "vite-plugin-md": "0.12.4",
    "vite-plugin-test": "0.0.5",
    "vite-plugin-vue2": "1.9.3",

partial log: (this would typically just show vite connecting and connected entries) Note: most of the components you see in the log are not even in the initial view loading and the log is actually longer which almost seems to load the entire dependency graph)

Note: this may be related to this Vite Issue 7608

[vite] hot updated: /node_modules/floating-vue/dist/style.css
client.ts:343 [vite] hot updated: /node_modules/@sse/puppeteer-ui-components/lib/puppeteer-ui-components.css
client.ts:343 [vite] hot updated: /src/App.vue?vue&type=style&index=0&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/collections/components/CollectionList.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/AudiencesPreview.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/MetricsPreview.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/ExpandableItem.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/PMFPreview.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/MetricsMAB.vue?vue&type=style&index=0&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/MutualExclusionPreview.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/SettingsTypeAndSplit.vue?vue&type=style&index=0&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/SettingsPreview.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/common/components/steps/Steps.vue?vue&type=style&index=0&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/TestComposer.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/test-composer/components/VariationsPreview.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/visualization/components/Chart.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 [vite] hot updated: /src/plugins/visualization/components/ForestPlot/ForestPlotChart.vue?vue&type=style&index=0&scoped=true&lang.scss
client.ts:343 
@Codermar Codermar changed the title hrm seems to keep firing on initial load after upgrade beyond ^0.31.3 (Vite+Vue2) hrm keeps firing on initial load after upgrade beyond ^0.31.3 (Vite+Vue2) Apr 23, 2022
@atzcl
Copy link

atzcl commented May 1, 2022

There is the same problem. In addition to the full hot update during initialization, the routing switch will also be full hot update, which causes the routing page loading and hot update to be super slow. By downgrading, it may be located in this fix(vite): update @apply when config changed caused by

@atzcl
Copy link

atzcl commented May 1, 2022

v0.32.8 fixed the issue, thanks to @antfu for the quick response

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

Successfully merging a pull request may close this issue.

2 participants