Skip to content

[Bug]: Slow hot reload #197

Open
Open

Description

@Saquib764

Demo URL

No response

What happened?

Hi, I integrated the Tairo in an existing Nuxt project. It is working fine, however, hot-reload is painfully slow. Any minor change takes > 1 minutes to show up, and page usually reloads. I am not sure what is the issue. I am using yarn.

Node version - 18.18

Thanks,
Saquib

Reproduction steps

1.Integrate tairo into an existing nuxt project.
2. Run the project

Relevant log output

No response

What browsers are you seeing the problem on?

Chrome

What is your operating system?

MacOS

Activity

  1. linear commented on Oct 1, 2024

    @linear
    CSS-31 [Bug]: Slow hot reload

    Demo URL

    No response

    What happened?

    Hi, I integrated the Tairo in an existing Nuxt project. It is working fine, however, hot-reload is painfully slow. Any minor change takes > 1 minutes to show up, and page usually reloads. I am not sure what is the issue. I am using yarn.

    Node version - 18.18

    Thanks,
    Saquib

    Reproduction steps

    1.Integrate tairo into an existing nuxt project.
    2. Run the project

    Relevant log output

    No response

    What browsers are you seeing the problem on?

    Chrome

    What is your operating system?

    MacOS

  2. gertjanjansen commented on Oct 1, 2024

    @gertjanjansen
    Collaborator

    Same here. Development using Tairo has always been slow for me. (using pnpm)

  3. Saquib764 commented on Oct 1, 2024

    @Saquib764
    CollaboratorAuthor
  4. Saquib764 commented on Oct 4, 2024

    @Saquib764
    CollaboratorAuthor

    Any updates here?

  5. dipbhi commented on Oct 16, 2024

    @dipbhi
    Collaborator

    I am seeing the same thing. Hot reload takes forever with Tairo. May be it has something to do with Nuxt layers, but not sure. In other projects with just CSS (no Tairo or other layers), hot reload is almost instantaneous.

  6. gertjanjansen commented on Oct 16, 2024

    @gertjanjansen
    Collaborator
  7. gertjanjansen commented on Oct 17, 2024

    @gertjanjansen
    Collaborator
  8. Saquib764 commented on Nov 6, 2024

    @Saquib764
    CollaboratorAuthor

    @gertjanjansen I tried it. (updated nuxt, vite and excluded node_modules) but it didn't solve the issue.

    Is anyone managed to solve this issue?

  9. gertjanjansen commented on Nov 6, 2024

    @gertjanjansen
    Collaborator

    @Saquib764 I've upgraded nuxt as well and removed the .demo layer. I believe it's a little bit faster now, but still too slow. I haven't tried removing all layers yet (meaning: merging everything into one layer).

  10. Saquib764 commented on Nov 7, 2024

    @Saquib764
    CollaboratorAuthor

    After upgrading, I am getting this error-

    FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
    

    I increased the memory to --max-old-space-size=12288 , still keep getting this error. Totally stuck now.

    Its sad, I like Tairo, but it made development too slow and frustrating

  11. Saquib764 commented on Nov 8, 2024

    @Saquib764
    CollaboratorAuthor

    The above issue was not related to Tairo. It was related to Nuxt UI. I upgraded to @nuxthq/studio": "^2.1.1" and the issue was fixed.

    Withe latest version of Nuxt, hot reload is considerably faster - 4-7 seconds. I would like it be almost instantaneous, but this is much better than what we had before.

    Read the complete issue here-
    nuxt/nuxt#26798

  12. gertjanjansen commented on Nov 20, 2024

    @gertjanjansen
    Collaborator

    4-7 seconds is still extremely slow, right? I never experienced this with any other React of Vue project. I'm almost at the point of paying someone to digg into this.

  13. miztizm commented on Dec 16, 2024

    @miztizm
    Collaborator

    The above issue was not related to Tairo. It was related to Nuxt UI. I upgraded to @nuxthq/studio": "^2.1.1" and the issue was fixed.

    Withe latest version of Nuxt, hot reload is considerably faster - 4-7 seconds. I would like it be almost instantaneous, but this is much better than what we had before.

    Read the complete issue here- nuxt/nuxt#26798

    It seems like "tairo" doesn't have a nuxthq/studio in the code. Did you add it yourself?
    I'm also experiencing a slow hot reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions