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

Version 2.14.0 breaks vite builds #10230

Open
tommypepsi opened this issue Nov 14, 2024 · 3 comments
Open

Version 2.14.0 breaks vite builds #10230

tommypepsi opened this issue Nov 14, 2024 · 3 comments

Comments

@tommypepsi
Copy link

Reproduction

  • Update remix to 2.14.0
  • Add a script in package.json "build": "vite build && vite build --ssr"
  • run npm run build

System Info

Issue happens on our `Amazon Linux 2023/6.2.2` instance as well as on my local window 10 machine:
System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 7.60 GB / 23.88 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE      
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 130.0.6723.117
    Edge: Chromium (127.0.2651.105)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @remix-run/dev: ^2.13.1 => 2.14.0
    @remix-run/eslint-config: ^2.0.0 => 2.14.0
    @remix-run/node: ^2.13.1 => 2.14.0
    @remix-run/react: ^2.13.1 => 2.14.0
    @remix-run/serve: ^2.13.1 => 2.14.0
    vite: ^5.3.4 => 5.4.11

Used Package Manager

npm

Expected Behavior

The build to complete.

Actual Behavior

The build gets stuck after "built in X.XXs" and never completes. This causes our Beanstalk deployment to time out and never complete.
image

I tried adding the future flags in the config but it didn't help.

At first I though it was a vite issue but after downgrading remix to version 2.13.1 it fixes the issue.

@khiconit
Copy link

Same issue

@rossipedia
Copy link
Contributor

Aren't you supposed to use remix vite:build instead of invoking vite directly?

@khiconit
Copy link

it worked, awesome

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

No branches or pull requests

3 participants