remix icon indicating copy to clipboard operation
remix copied to clipboard

Node Crash on vite build

Open ksjogo opened this issue 1 year ago • 1 comments

Reproduction

It's a bit complicated to give a full reproduction here. We are currently trying to move our existing nx vite monorepo app to remix. When running the build step, we get the following error:

fo [hrtime] Extracted in (385.83ms)
✓ 2905 modules transformed.
rendering chunks (72)...

#
# Fatal error in , line 0
# Fatal JavaScript invalid size error 169220804 (see crbug.com/1201626)
#
#
#
#FailureMessage Object: 0x16d6b41c8

Which seems like some internal Node js stack/array issues. I will try to narrow that down but would appreciate if someone who has seen this before could point out some direction to debug this.

System Info

OS X 14.3
Node v20.11.0

Used Package Manager

npm

Expected Behavior

Build running through.

Actual Behavior

Build erroring out.

ksjogo avatar Feb 15 '24 10:02 ksjogo

Hey @ksjogo, did you ever find the culprit?

machour avatar May 17 '24 13:05 machour

Hey @ksjogo, did you ever find the culprit?

I think in some other issue someone discovered that TypeScript references were somehow related to this. We had to remove the references in our project (which was quite bad, as we can't have the tests in another tsconfig project). Didn't try to readd references yet.

ksjogo avatar May 27 '24 16:05 ksjogo

Ok. I'm going to close this issue for now to tidy up the repo. If you ever stumble on this again, please open a new one 🙏

machour avatar May 28 '24 07:05 machour