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

Build process hangs at 'modules transformed' with >=2.9.7, works with 2.9.6 #8738

Closed
7 tasks done
johannes-z opened this issue Jun 23, 2022 · 2 comments · Fixed by #8741
Closed
7 tasks done

Build process hangs at 'modules transformed' with >=2.9.7, works with 2.9.6 #8738

johannes-z opened this issue Jun 23, 2022 · 2 comments · Fixed by #8741

Comments

@johannes-z
Copy link

johannes-z commented Jun 23, 2022

Describe the bug

Follow up on #8517 - I missed the auto closing. I created a repro. The problem seems to be coming when using a certain library, but should shed some light on why this is happening in the first place.

The build is eventually finishing, but just takes extremely long. In my actual project it doesn't finish within 10 minutes... As already mentioned, changing this LOC https://github.com/johannes-z/vite2/blob/main/src/main.ts#L22 to the following fixes the issue too. Changing format to es works also - it's just umd that's broken:

baseUrl: getPageContext() ? getPageContext().web.absoluteUrl : window.location.origin

Also happens with vite 3 alpha 14

Reproduction

https://github.com/johannes-z/vite2

  1. git clone
  2. pnpm i
  3. pnpm run build

System Info

System:
    OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (16) x64 AMD Ryzen 7 PRO 5850U with Radeon Graphics
    Memory: 13.43 GB / 18.62 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    npm: 8.3.0 - ~/.nvm/versions/node/v16.13.1/bin/npm
  npmPackages:
    @vitejs/plugin-vue2: ^1.1.0 => 1.1.0 
    vite: 2.9.12 => 2.9.12

Used Package Manager

pnpm

Logs

No response

Validations

@sapphi-red
Copy link
Member

@johannes-z Would you try #8741? It might fix this issue.

@johannes-z
Copy link
Author

@sapphi-red Great, that works! Fixes both my repro and bigger project!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants