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

Component rendering in production build but not in development #12246

Closed
parthibd opened this issue Aug 29, 2021 · 5 comments
Closed

Component rendering in production build but not in development #12246

parthibd opened this issue Aug 29, 2021 · 5 comments

Comments

@parthibd
Copy link

parthibd commented Aug 29, 2021

Version

2.6.14

Reproduction link

http://localhost:8080/

Steps to reproduce

Just replace the vue dev build library with vue production build library.

What is expected?

Component should render in dev build .

What is actually happening?

High CPU usage and component is not rendering


When I do a production build , the app just works fine but in dev build the whole page goes unresponsive with high CPU usage. And it's related to just one component.

I am unable to show you a minimal reproduction since it's happening only in development but not in production :(

@parthibd
Copy link
Author

Update:

The issue seems to be this line

for (let j = i - range; j <= i + range || end > count; j++) {

It's was stuck in an infinite loop. I do not experience with the compiler codebase so I am not sure if it's the only reason for my bug.

@parthibd
Copy link
Author

Related:

#10547
#10553

@parthibd
Copy link
Author

Seems to be addressed in Vue 3 but not Vue 2

vuejs/core#3987

@parthibd
Copy link
Author

@posva @yyx990803

@posva
Copy link
Member

posva commented Aug 29, 2021

Open a new issue with an actual reproduction. Otherwise we can't do much

@posva posva closed this as completed Aug 29, 2021
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

2 participants