Skip to content

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

Answered by fredericrous
fredericrous asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks 😆. I am sorted now, what I did was:

  • I updated most of my dependencies, especially pnpm, vite and typescript
  • I tried to get the same version for most of the dependencies that were used in different projects
  • I applied the performance advices from Performance | Vite especially I reduced the number of file extensions vite looks for by updating resolve.extensions
export default defineConfig({
  resolve: {
    extensions: ['.js', '.ts', '.tsx', '.json'],
  },

someone on fly.io's forum suggested to increase the size of the VM. Apparently it could increase the size of the builder but I did not notice any change, the builder crashed at the same spot so I was not seeing it in fly app list h…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@fredericrous
Comment options

@kentcdodds
Comment options

@fredericrous
Comment options

Answer selected by kentcdodds
@kentcdodds
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants